public class ServiceManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static ServiceManager |
INSTANCE
The default ServiceManager instance.
|
Constructor and Description |
---|
ServiceManager()
Constructs a new ServiceManager.
|
ServiceManager(java.io.InputStream inputStream)
Constructs a new ServiceManager from an InputStream.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final java.lang.String COPYRIGHT
public static final ServiceManager INSTANCE
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.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()