org.apache.servicemix.jbi.framework
Class ClientFactory
java.lang.Object
org.apache.servicemix.jbi.management.BaseLifeCycle
org.apache.servicemix.jbi.management.BaseSystemService
org.apache.servicemix.jbi.framework.ClientFactory
- All Implemented Interfaces:
- Serializable, javax.jbi.management.LifeCycleMBean, org.apache.servicemix.jbi.api.ClientFactory, ClientFactoryMBean, MBeanInfoProvider
public class ClientFactory
- extends BaseSystemService
- implements ClientFactoryMBean, Serializable
- Author:
- Guillaume Nodet
- See Also:
- Serialized Form
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Fields inherited from interface org.apache.servicemix.jbi.api.ClientFactory |
DEFAULT_JNDI_NAME |
| Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
firePropertyChanged, getAttributeInfos, getCurrentState, getObjectToManage, getSubType, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jbi.management.LifeCycleMBean |
getCurrentState, shutDown |
ClientFactory
public ClientFactory()
getJndiName
public String getJndiName()
- Returns:
- the jndiName
setJndiName
public void setJndiName(String jndiName)
- Parameters:
jndiName - the jndiName to set
createClient
public ServiceMixClient createClient()
throws javax.jbi.JBIException
- Specified by:
createClient in interface org.apache.servicemix.jbi.api.ClientFactory
- Throws:
javax.jbi.JBIException
getServiceMBean
protected Class getServiceMBean()
- Specified by:
getServiceMBean in class BaseSystemService
getDescription
public String getDescription()
- Description copied from interface:
MBeanInfoProvider
- Get the Description of the item
- Specified by:
getDescription in interface MBeanInfoProvider
- Returns:
- the description
getOperationInfos
public MBeanOperationInfo[] getOperationInfos()
throws JMException
- Description copied from class:
BaseLifeCycle
- Get an array of MBeanOperationInfo
- Specified by:
getOperationInfos in interface MBeanInfoProvider- Overrides:
getOperationInfos in class BaseLifeCycle
- Returns:
- array of OperationInfos
- Throws:
JMException
start
public void start()
throws javax.jbi.JBIException
- Start the item.
- Specified by:
start in interface javax.jbi.management.LifeCycleMBean- Overrides:
start in class BaseLifeCycle
- Throws:
javax.jbi.JBIException - if the item fails to start.
stop
public void stop()
throws javax.jbi.JBIException
- Stop the item. This suspends current messaging activities.
- Specified by:
stop in interface javax.jbi.management.LifeCycleMBean- Overrides:
stop in class BaseLifeCycle
- Throws:
javax.jbi.JBIException - if the item fails to stop.
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.