|
SCA API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModuleContext
Interface that can be used by SCA Components to access information about the Module that contains them.
Method Summary | |
---|---|
ServiceReference |
createServiceReferenceForSession(Object self)
Create a reference to the supplied component. |
ServiceReference |
createServiceReferenceForSession(Object self,
String serviceName)
Create a reference to the named service implemented by the supplied component. |
String |
getName()
Returns the name of the module. |
RequestContext |
getRequestContext()
Returns the request context that corresponds to the last remotable service invocation. |
String |
getURI()
Returns the absolute URI of the module component. |
Object |
locateService(String serviceName)
Returns an object implementing the interface defined for the named service. |
ServiceReference |
newSession(String serviceName)
Create a new session for stateful interaction with the named service. |
ServiceReference |
newSession(String serviceName,
Object sessionId)
Create a new session for stateful interaction with the named service using an application-supplied session identifier. |
Method Detail |
---|
String getName()
String getURI()
RequestContext getRequestContext()
Object locateService(String serviceName)
serviceName
- the name of another service in the current module
ServiceReference createServiceReferenceForSession(Object self)
self
- the component to be referenced
ServiceReference createServiceReferenceForSession(Object self, String serviceName)
self
- the component to be referencedserviceName
- the service to be referenced
ServiceReference newSession(String serviceName)
serviceName
- the name of the service to interact with
ServiceReference newSession(String serviceName, Object sessionId)
serviceName
- the name of the service to interact withsessionId
- a token that identifies this session
|
SCA API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |