|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompositeContext
Interface used by SCA Components to access their context
Method Summary | ||
---|---|---|
ServiceReference |
createServiceReferenceForSession(java.lang.Object self)
Create a reference to the supplied component. |
|
ServiceReference |
createServiceReferenceForSession(java.lang.Object self,
java.lang.String serviceName)
Create a reference to the named service implemented by the supplied component. |
|
java.lang.String |
getCompositeName()
Returns the name of the parent composite. |
|
java.lang.String |
getCompositeURI()
Returns the absolute URI of the composite component. |
|
RequestContext |
getRequestContext()
Returns the request context that corresponds to the last remotable service invocation. |
|
|
locateService(java.lang.Class<T> serviceType,
java.lang.String serviceName)
Returns an object implementing the interface defined for the named service. |
|
ServiceReference |
newSession(java.lang.String serviceName)
Create a new session for stateful interaction with the named service. |
|
ServiceReference |
newSession(java.lang.String serviceName,
java.lang.Object sessionId)
Create a new session for stateful interaction with the named service using an application-supplied session identifier. |
Method Detail |
---|
java.lang.String getCompositeName()
java.lang.String getCompositeURI()
RequestContext getRequestContext()
<T> T locateService(java.lang.Class<T> serviceType, java.lang.String serviceName)
serviceName
- the name of another service in the current module
ServiceReference createServiceReferenceForSession(java.lang.Object self)
self
- the component to be referenced
ServiceReference createServiceReferenceForSession(java.lang.Object self, java.lang.String serviceName)
self
- the component to be referencedserviceName
- the service to be referenced
ServiceReference newSession(java.lang.String serviceName)
serviceName
- the name of the service to interact with
ServiceReference newSession(java.lang.String serviceName, java.lang.Object sessionId)
serviceName
- the name of the service to interact withsessionId
- a token that identifies this session
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |