|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.sca.ServiceManager
public class ServiceManager
Represents a lookup scope for locating SCA services. ServiceManager provides methods to locate a service given an SCA service reference. It also provides methods to bind an SCA reference to an endpoint. From inside a service component, ServiceManager allows you to get a handle to the current service component metadata and create an endpoint reference for this component.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static ServiceManager |
INSTANCE
The default ServiceManager instance. |
Constructor Summary | |
---|---|
ServiceManager()
Constructs a new ServiceManager. |
|
ServiceManager(java.io.InputStream inputStream)
Constructs a new ServiceManager from an InputStream. |
Method Summary | |
---|---|
EndpointReference |
createEndpointReference(InterfaceType interfaceType)
Creates an endpoint reference for one of interfaces exposed by the current service component. |
Component |
getComponent()
Returns the Component object representing the current SCDL component. |
commonj.sdo.Sequence |
getEndpointReferenceParameters()
Returns the endpoint reference parameters associated with the current invocation. |
commonj.sdo.Sequence |
getEndpointReferenceProperties()
Returns the endpoint reference properties associated with the current invocation. |
java.lang.Object |
getService(Reference reference,
EndpointReference endpointReference)
Locates the given service reference, binds the service reference to the given endpoint, and returns a proxy to the target service. |
java.lang.Object |
getService(java.lang.String referenceName,
EndpointReference endpointReference)
Locates the named service reference, binds the service reference to the given endpoint, and returns a proxy to the target service. |
java.lang.Object |
locateService(Reference reference)
Locates the service wired to the given reference and returns a proxy to the service. |
java.lang.Object |
locateService(java.lang.String referenceName)
Locates the service wired to the named reference and returns a proxy to the service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final ServiceManager INSTANCE
Constructor Detail |
---|
public ServiceManager()
public ServiceManager(java.io.InputStream inputStream)
inputStream
- An inputStream for an SCDL references document containing a set of SCA service references to use.Method Detail |
---|
public java.lang.Object locateService(java.lang.String referenceName)
referenceName
- The name of the reference.
public java.lang.Object locateService(Reference reference)
reference
- An SCDL Reference object.
public EndpointReference createEndpointReference(InterfaceType interfaceType)
interfaceType
- An InterfaceType object representing the interface provided by the endpoint.
public java.lang.Object getService(java.lang.String referenceName, EndpointReference endpointReference)
referenceName
- The name of the reference.endpointReference
- The endpoint of the target service.
public java.lang.Object getService(Reference reference, EndpointReference endpointReference)
reference
- A Reference object representing the SCDL reference.endpointReference
- The endpoint of the target service.
public commonj.sdo.Sequence getEndpointReferenceProperties()
public commonj.sdo.Sequence getEndpointReferenceParameters()
public Component getComponent()
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |