org.apache.servicemix.geronimo
Class ServiceMixGBean

java.lang.Object
  extended by org.apache.servicemix.geronimo.ServiceMixGBean
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle, Container

public class ServiceMixGBean
extends java.lang.Object
implements org.apache.geronimo.gbean.GBeanLifecycle, Container


Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
ServiceMixGBean(java.lang.String name, java.lang.String directory, org.apache.geronimo.gbean.AbstractNameQuery transactionManagerName, org.apache.geronimo.gbean.AbstractNameQuery flows, org.apache.geronimo.kernel.Kernel kernel)
           
 
Method Summary
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 JBIContainer getJBIContainer()
          Returns the JBIContainer
 void register(Component component)
           
 void register(ServiceAssembly assembly)
           
 void setPersistent(boolean persistent)
          Sets the persistent flag
 void unregister(Component component)
           
 void unregister(ServiceAssembly assembly)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

ServiceMixGBean

public ServiceMixGBean(java.lang.String name,
                       java.lang.String directory,
                       org.apache.geronimo.gbean.AbstractNameQuery transactionManagerName,
                       org.apache.geronimo.gbean.AbstractNameQuery flows,
                       org.apache.geronimo.kernel.Kernel kernel)
Method Detail

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()

setPersistent

public void setPersistent(boolean persistent)
Sets the persistent flag

Parameters:
persistent - flag for the JBIContainer

doStart

public void doStart()
             throws java.lang.Exception
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
java.lang.Exception - if the target failed to start; this will cause a transition to the failed state

doStop

public void doStop()
            throws java.lang.Exception
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
java.lang.Exception - if the target failed to stop; this will cause a transition to the failed state

doFail

public void doFail()
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

getJBIContainer

public JBIContainer getJBIContainer()
Returns the JBIContainer

Specified by:
getJBIContainer in interface Container
Returns:
JBIContainer

register

public void register(Component component)
              throws java.lang.Exception
Specified by:
register in interface Container
Throws:
java.lang.Exception

unregister

public void unregister(Component component)
                throws java.lang.Exception
Specified by:
unregister in interface Container
Throws:
java.lang.Exception

register

public void register(ServiceAssembly assembly)
              throws java.lang.Exception
Specified by:
register in interface Container
Throws:
java.lang.Exception

unregister

public void unregister(ServiceAssembly assembly)
                throws java.lang.Exception
Specified by:
unregister in interface Container
Throws:
java.lang.Exception


Copyright © 2005-2011 FuseSource. All Rights Reserved.