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 Object
implements org.apache.geronimo.gbean.GBeanLifecycle, Container


Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
ServiceMixGBean(String name, String directory, TransactionManager transactionManager, 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()
           
 void register(Component component)
           
 void register(ServiceAssembly assembly)
           
 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(String name,
                       String directory,
                       TransactionManager transactionManager,
                       org.apache.geronimo.kernel.Kernel kernel)
Method Detail

getGBeanInfo

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

doStart

public void doStart()
             throws 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:
Exception - if the target failed to start; this will cause a transition to the failed state

doStop

public void doStop()
            throws 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:
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

register

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

unregister

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

register

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

unregister

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


Copyright © 2005-2007. All Rights Reserved.