|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface, implemented by component implementations, allows the JBI implementation to query the component for various types of information. This includes:
The name of the class that implements this interface for a component is specified in the installation descriptor for that component.
Method Summary | |
ComponentLifeCycle |
getLifeCycle()
Get the life cycle control interface for this component. |
org.w3c.dom.Document |
getServiceDescription(ServiceEndpoint endpoint)
Retrieves a DOM representation containing metadata which describes the service provided by this component, through the given endpoint. |
ServiceUnitManager |
getServiceUnitManager()
Get the Service Unit manager for this component. |
boolean |
isExchangeWithConsumerOkay(ServiceEndpoint endpoint,
MessageExchange exchange)
This method is called by JBI to check if this component, in the role of provider of the service indicated by the given exchange, can actually perform the operation desired. |
boolean |
isExchangeWithProviderOkay(ServiceEndpoint endpoint,
MessageExchange exchange)
This method is called by JBI to check if this component, in the role of consumer of the service indicated by the given exchange, can actually interact with the provider properly. |
ServiceEndpoint |
resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
Resolve the given endpoint reference. |
Method Detail |
public ComponentLifeCycle getLifeCycle()
This method must be called before any other methods of this interface are called. In addition, the JBI implementation must call the init() method of the component life cycle returned by this method before calling any other methods on this interface, or the component life cycle interface.
public ServiceUnitManager getServiceUnitManager()
null
.
ServiceUnitManager
for this component, or
null
if there is none.public org.w3c.dom.Document getServiceDescription(ServiceEndpoint endpoint)
endpoint
- the service endpoint.
public boolean isExchangeWithConsumerOkay(ServiceEndpoint endpoint, MessageExchange exchange)
endpoint
- the endpoint to be used by the consumer; must be
non-null.exchange
- the proposed message exchange to be performed; must be
non-null.
true
if this provider component can perform the
given exchange with the described consumer.public boolean isExchangeWithProviderOkay(ServiceEndpoint endpoint, MessageExchange exchange)
endpoint
- the endpoint to be used by the provider; must be
non-null.exchange
- the proposed message exchange to be performed; must be
non-null.
true
if this consumer component can interact with
the described provider to perform the given exchange.public ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
If this component returns a non-null result, it must conform to the following:
ServiceEndpoint
returned.
ComponentContext.activateEndpoint(QName,
String)
), nor registered (see ComponentContext
) by components.
They can only be used to address message exchanges; the JBI
implementation must deliver such exchanges to the component that resolved
the endpoint reference (see ComponentContext.resolveEndpointReference(DocumentFragment)
).
epr
- the endpoint reference, in some XML dialect understood by
the appropriate component (usually a binding); must be non-null.
null
if the
EPR cannot be resolved by this component.
|
Built 06/07/2005 11:16 AM on acer (SunOS 5.9) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |