|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4corba.jbi.component.runtime.ComponentRuntime
public abstract class ComponentRuntime
This is the Base implementation of the Component apis. Each component will extend this class to provide the component specific implemenation of the api by overriding the default implemenation or providing the implemenation of the create methods for ComponentLifecycle and ServiceUnitManager.
javax.jbi.Component
Constructor Summary | |
---|---|
protected |
ComponentRuntime()
constructor |
Method Summary | |
---|---|
protected abstract javax.jbi.component.ComponentLifeCycle |
createComponentLifeCycle()
return the ComponentLifeCycle implementaion. |
protected abstract javax.jbi.component.ServiceUnitManager |
createServiceUnitManager()
if this component supports service unit deployment, then return the service unit manager, else return null |
javax.jbi.component.ComponentLifeCycle |
getLifeCycle()
Get the life cycle control interface for this component. |
Document |
getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint ref)
Retrieves a DOM representation containing metadata which describes the service provided by this component, through the given endpoint. |
javax.jbi.component.ServiceUnitManager |
getServiceUnitManager()
Get the Service Unit manager for this component. |
boolean |
isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint,
javax.jbi.messaging.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(javax.jbi.servicedesc.ServiceEndpoint endpoint,
javax.jbi.messaging.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. |
javax.jbi.servicedesc.ServiceEndpoint |
resolveEndpointReference(DocumentFragment epr)
Resolve the given endpoint reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ComponentRuntime()
Method Detail |
---|
public final javax.jbi.component.ComponentLifeCycle getLifeCycle()
getLifeCycle
in interface javax.jbi.component.Component
javax.jbi.Component#getLifeCycle()
public final javax.jbi.component.ServiceUnitManager getServiceUnitManager()
getServiceUnitManager
in interface javax.jbi.component.Component
ServiceUnitManager
for this component, or
null
if there is none.javax.jbi.Component#getServiceUnitManager()
public Document getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint ref)
getServiceDescription
in interface javax.jbi.component.Component
endpoint
- the service endpoint.
javax.jbi.Component#getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint)
public boolean isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange)
isExchangeWithConsumerOkay
in interface javax.jbi.component.Component
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(javax.jbi.servicedesc.ServiceEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange)
isExchangeWithProviderOkay
in interface javax.jbi.component.Component
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 javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(DocumentFragment epr)
resolveEndpointReference
in interface javax.jbi.component.Component
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.javax.jbi.Component#resolveEndpointReference(org.w3c.dom.DocumentFragment)
protected abstract javax.jbi.component.ComponentLifeCycle createComponentLifeCycle()
protected abstract javax.jbi.component.ServiceUnitManager createServiceUnitManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |