org.mule.providers.jbi.components
Class AbstractJbiComponent
java.lang.Object
org.mule.providers.jbi.components.AbstractJbiComponent
- All Implemented Interfaces:
- javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle, Runnable, Work
- Direct Known Subclasses:
- AbstractEndpointComponent, TransformerComponent
- public abstract class AbstractJbiComponent
- extends Object
- implements javax.jbi.component.Component, Work, javax.jbi.component.ComponentLifeCycle
A base Jbi component implementation. This is agnostic to any particular Jbi container
- Version:
- $Revision: 3167 $
- Author:
- Ross Mason
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IN
public static final String IN
- See Also:
- Constant Field Values
OUT
public static final String OUT
- See Also:
- Constant Field Values
logger
protected transient org.apache.commons.logging.Log logger
- logger used by this class
context
protected javax.jbi.component.ComponentContext context
serviceDescriptions
protected Map serviceDescriptions
service
protected javax.xml.namespace.QName service
name
protected String name
workManager
protected WorkManager workManager
deliveryChannel
protected javax.jbi.messaging.DeliveryChannel deliveryChannel
mbeanName
protected javax.management.ObjectName mbeanName
serviceUnitManager
protected javax.jbi.component.ServiceUnitManager serviceUnitManager
exchangeFactory
protected javax.jbi.messaging.MessageExchangeFactory exchangeFactory
started
protected org.mule.util.concurrent.WaitableBoolean started
AbstractJbiComponent
public AbstractJbiComponent()
getLifeCycle
public javax.jbi.component.ComponentLifeCycle getLifeCycle()
- Specified by:
getLifeCycle in interface javax.jbi.component.Component
getServiceUnitManager
public javax.jbi.component.ServiceUnitManager getServiceUnitManager()
- Specified by:
getServiceUnitManager in interface javax.jbi.component.Component
getServiceDescription
public Document getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
- Specified by:
getServiceDescription in interface javax.jbi.component.Component
setServiceDescription
public void setServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint,
Document doc)
isExchangeWithConsumerOkay
public boolean isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange)
- Specified by:
isExchangeWithConsumerOkay in interface javax.jbi.component.Component
isExchangeWithProviderOkay
public boolean isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange)
- Specified by:
isExchangeWithProviderOkay in interface javax.jbi.component.Component
resolveEndpointReference
public javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(DocumentFragment epr)
- Specified by:
resolveEndpointReference in interface javax.jbi.component.Component
createExtensionMBeanName
protected javax.management.ObjectName createExtensionMBeanName()
throws Exception
- Throws:
Exception
getExtensionMBean
public Object getExtensionMBean()
getService
public javax.xml.namespace.QName getService()
setService
public void setService(javax.xml.namespace.QName service)
getName
public String getName()
setName
public void setName(String name)
getWorkManager
public WorkManager getWorkManager()
setWorkManager
public void setWorkManager(WorkManager workManager)
init
public final void init(javax.jbi.component.ComponentContext context)
throws javax.jbi.JBIException
- Specified by:
init in interface javax.jbi.component.ComponentLifeCycle
- Throws:
javax.jbi.JBIException
shutDown
public final void shutDown()
throws javax.jbi.JBIException
- Specified by:
shutDown in interface javax.jbi.component.ComponentLifeCycle
- Throws:
javax.jbi.JBIException
start
public final void start()
throws javax.jbi.JBIException
- Specified by:
start in interface javax.jbi.component.ComponentLifeCycle
- Throws:
javax.jbi.JBIException
stop
public final void stop()
throws javax.jbi.JBIException
- Specified by:
stop in interface javax.jbi.component.ComponentLifeCycle
- Throws:
javax.jbi.JBIException
doInit
protected void doInit()
throws javax.jbi.JBIException
- Throws:
javax.jbi.JBIException
doStart
protected void doStart()
throws javax.jbi.JBIException
- Throws:
javax.jbi.JBIException
doStop
protected void doStop()
throws javax.jbi.JBIException
- Throws:
javax.jbi.JBIException
doShutdown
protected void doShutdown()
throws javax.jbi.JBIException
- Throws:
javax.jbi.JBIException
getExtensionMBeanName
public javax.management.ObjectName getExtensionMBeanName()
- Specified by:
getExtensionMBeanName in interface javax.jbi.component.ComponentLifeCycle
setExtensionMBeanName
public void setExtensionMBeanName(javax.management.ObjectName mbeanName)
release
public void release()
- Specified by:
release in interface Work
run
public void run()
- Specified by:
run in interface Runnable
handleException
protected void handleException(Throwable t)
error
protected void error(javax.jbi.messaging.MessageExchange me,
javax.jbi.messaging.Fault fault)
throws javax.jbi.messaging.MessagingException
- Throws:
javax.jbi.messaging.MessagingException
done
protected void done(javax.jbi.messaging.MessageExchange me)
throws javax.jbi.messaging.MessagingException
- Throws:
javax.jbi.messaging.MessagingException
error
protected void error(javax.jbi.messaging.MessageExchange me,
Exception e)
throws javax.jbi.messaging.MessagingException
- Throws:
javax.jbi.messaging.MessagingException
Copyright © 2003-2006 SymphonySoft Limited. All Rights Reserved.