org.apache.servicemix.jbi.framework
Class ClientFactory

java.lang.Object
  extended by org.apache.servicemix.jbi.management.BaseLifeCycle
      extended by org.apache.servicemix.jbi.management.BaseSystemService
          extended by 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

Field Summary
 
Fields inherited from class org.apache.servicemix.jbi.management.BaseSystemService
container
 
Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
currentState, INITIALIZED, listener
 
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
 
Constructor Summary
ClientFactory()
           
 
Method Summary
 ServiceMixClient createClient()
           
 String getDescription()
          Get the Description of the item
 String getJndiName()
           
 MBeanOperationInfo[] getOperationInfos()
          Get an array of MBeanOperationInfo
protected  Class getServiceMBean()
           
 void setJndiName(String jndiName)
           
 void start()
          Start the item.
 void stop()
          Stop the item.
 
Methods inherited from class org.apache.servicemix.jbi.management.BaseSystemService
getContainer, getName, getType, init, shutDown
 
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
 

Constructor Detail

ClientFactory

public ClientFactory()
Method Detail

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.