|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentContext
Method Summary | ||
---|---|---|
|
cast(B target)
Casts a type-safe reference to a CallableReference. |
|
|
createSelfReference(java.lang.Class<B> businessInterface)
Returns a ServiceReference that can be used to invoke this component over the designated service. |
|
|
createSelfReference(java.lang.Class<B> businessInterface,
java.lang.String serviceName)
Returns a ServiceReference that can be used to invoke this component over the designated service. |
|
|
getProperty(java.lang.Class<B> type,
java.lang.String propertyName)
Returns the value of an SCA property defined by this component. |
|
RequestContext |
getRequestContext()
Returns the context for the current SCA service request, or null if there is no current request or if the context is unavailable. |
|
|
getService(java.lang.Class<B> businessInterface,
java.lang.String referenceName)
Returns a proxy for the reference defined by the current component. |
|
|
getServiceReference(java.lang.Class<B> businessInterface,
java.lang.String referenceName)
Returns a ServiceReference defined by the current component. |
|
java.lang.String |
getURI()
Returns the absolute URI of the component within the SCA domain. |
Method Detail |
---|
java.lang.String getURI()
<B> B getService(java.lang.Class<B> businessInterface, java.lang.String referenceName)
B
- businessInterface
- referenceName
-
<B> ServiceReference<B> getServiceReference(java.lang.Class<B> businessInterface, java.lang.String referenceName)
B
- businessInterface
- referenceName
-
<B> ServiceReference<B> createSelfReference(java.lang.Class<B> businessInterface)
B
- businessInterface
-
<B> ServiceReference<B> createSelfReference(java.lang.Class<B> businessInterface, java.lang.String serviceName)
B
- businessInterface
- serviceName
-
<B> B getProperty(java.lang.Class<B> type, java.lang.String propertyName)
B
- type
- propertyName
-
<B,R extends CallableReference<B>> R cast(B target) throws java.lang.IllegalArgumentException
B
- R
- target
-
java.lang.IllegalArgumentException
RequestContext getRequestContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |