|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.component.framework.AbstractComponent
public abstract class AbstractComponent
An abstract class that can be used to easily create a new JBI Component.
It implements the Component interface.
It allow to manage directly endpoints.
To do this, simply put into the resources of the project a valid wsdl named
'component.wsdl'
| Field Summary | |
|---|---|
protected javax.jbi.component.ComponentContext |
context
The Component's Context |
| Constructor Summary | |
|---|---|
AbstractComponent()
|
|
| Method Summary | |
|---|---|
javax.jbi.servicedesc.ServiceEndpoint |
activateEndpoint(javax.xml.namespace.QName serviceName,
java.lang.String endpointName)
Store wsdl and then activate endpoint in the JBI context |
protected abstract AbstractServiceUnitManager |
createServiceUnitManager()
Can be overridden to provide a specific service unit manager |
void |
deactivateEndpoint(javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint)
|
protected void |
doInit()
A convenience method which can be overridden so that there's no need to call super.doInit(). |
protected void |
doShutdown()
A convenience method which can be overridden so that there's no need to call super.doShutdown(). |
protected void |
doStart()
A convenience method which can be overridden so that there's no need to call super.doStart(). |
protected void |
doStop()
A convenience method which can be overridden so that there's no need to call super.doStop(). |
AsyncMessageManager |
getAsyncManager()
|
javax.jbi.messaging.DeliveryChannel |
getChannel()
|
org.ow2.petals.component.framework.jbidescriptor.generated.Component |
getComponentConfiguration()
|
org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions |
getComponentExtensions()
|
javax.jbi.component.ComponentContext |
getContext()
|
javax.management.ObjectName |
getExtensionMBeanName()
|
org.ow2.petals.component.framework.api.Interceptor |
getInterceptor(java.lang.String name)
|
java.util.Map<java.lang.String,org.ow2.petals.component.framework.api.Interceptor> |
getInterceptors()
|
javax.jbi.component.ComponentLifeCycle |
getLifeCycle()
|
java.util.logging.Logger |
getLogger()
|
org.ow2.petals.component.framework.api.Wsdl |
getNativeWsdl()
Get the nativeWsdl |
JBIProcessorManager |
getProcessorManager()
Return the JBI processor manager |
protected java.lang.String |
getResourceBundleName()
Can be overridden to return a custom resource bundle name |
org.w3c.dom.Document |
getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
|
javax.jbi.component.ServiceUnitManager |
getServiceUnitManager()
|
void |
init(javax.jbi.component.ComponentContext compContext)
|
boolean |
isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange)
|
boolean |
isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange)
|
javax.jbi.servicedesc.ServiceEndpoint |
resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
|
void |
shutDown()
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.jbi.component.ComponentContext context
| Constructor Detail |
|---|
public AbstractComponent()
| Method Detail |
|---|
public AsyncMessageManager getAsyncManager()
public javax.jbi.messaging.DeliveryChannel getChannel()
getChannel in interface org.ow2.petals.component.framework.api.PetalsComponentpublic org.ow2.petals.component.framework.jbidescriptor.generated.Component getComponentConfiguration()
public org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions getComponentExtensions()
public javax.jbi.component.ComponentContext getContext()
getContext in interface org.ow2.petals.component.framework.api.PetalsComponentpublic javax.management.ObjectName getExtensionMBeanName()
getExtensionMBeanName in interface javax.jbi.component.ComponentLifeCyclepublic org.ow2.petals.component.framework.api.Interceptor getInterceptor(java.lang.String name)
getInterceptor in interface org.ow2.petals.component.framework.api.PetalsComponentpublic java.util.Map<java.lang.String,org.ow2.petals.component.framework.api.Interceptor> getInterceptors()
getInterceptors in interface org.ow2.petals.component.framework.api.PetalsComponentpublic javax.jbi.component.ComponentLifeCycle getLifeCycle()
getLifeCycle in interface javax.jbi.component.Componentpublic java.util.logging.Logger getLogger()
getLogger in interface org.ow2.petals.component.framework.api.PetalsComponentpublic org.ow2.petals.component.framework.api.Wsdl getNativeWsdl()
public org.w3c.dom.Document getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
getServiceDescription in interface javax.jbi.component.Componentpublic javax.jbi.component.ServiceUnitManager getServiceUnitManager()
getServiceUnitManager in interface javax.jbi.component.Component
public final void init(javax.jbi.component.ComponentContext compContext)
throws javax.jbi.JBIException
init in interface javax.jbi.component.ComponentLifeCyclejavax.jbi.JBIException
public boolean isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange)
isExchangeWithConsumerOkay in interface javax.jbi.component.Component
public boolean isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange)
isExchangeWithProviderOkay in interface javax.jbi.component.Componentpublic javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
resolveEndpointReference in interface javax.jbi.component.Component
public final void shutDown()
throws javax.jbi.JBIException
shutDown in interface javax.jbi.component.ComponentLifeCyclejavax.jbi.JBIException
public final void start()
throws javax.jbi.JBIException
start in interface javax.jbi.component.ComponentLifeCyclejavax.jbi.JBIException
public final void stop()
throws javax.jbi.JBIException
stop in interface javax.jbi.component.ComponentLifeCyclejavax.jbi.JBIExceptionprotected abstract AbstractServiceUnitManager createServiceUnitManager()
protected void doInit()
throws javax.jbi.JBIException
javax.jbi.JBIException
protected void doShutdown()
throws javax.jbi.JBIException
javax.jbi.JBIException
protected void doStart()
throws javax.jbi.JBIException
javax.jbi.JBIException
protected void doStop()
throws javax.jbi.JBIException
javax.jbi.JBIExceptionprotected java.lang.String getResourceBundleName()
public javax.jbi.servicedesc.ServiceEndpoint activateEndpoint(javax.xml.namespace.QName serviceName,
java.lang.String endpointName)
throws javax.jbi.JBIException
serviceName - endpointName -
javax.jbi.JBIException
public void deactivateEndpoint(javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint)
throws javax.jbi.JBIException
javax.jbi.JBIExceptionpublic JBIProcessorManager getProcessorManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||