org.apache.geronimo.gbean
Interface GBeanLifecycle

All Known Implementing Classes:
AbstractHttp11ConnectorGBean, AJP13Connector, AJP13ConnectorGBean, AppClientContainer, AppClientCORBABean, ApplicationPolicyConfigurationManager, Axis2ConfigGBean, BaseHttp11ConnectorGBean, BasicWADICluster, BasicWADISessionManager, BrokerServiceGBeanImpl, CatalinaClusterGBean, ChannelGBean, ClusterDeployerGBean, ClusterListenerGBean, Configuration, ConfigurationMonitorGBean, ConnectionTrackingCoordinatorGBean, ConnectorGBean, CORBABean, CSSBean, DerbyNetworkGBean, DerbySystemGBean, DirectoryHotDeployer, DynamicStubClassLoader, EditableKernelConfigurationManager, EjbContainer, EjbDaemonGBean, EjbDeploymentGBean, EjbModuleImplGBean, EjbWebServiceGBean, EJBWebServiceGBean, EJBWebServiceGBean, EngineGBean, FarmWarDeployerGBean, FileCertificateRequestStore, FileCertificateStore, FileKeystoreInstance, FileKeystoreManager, GBeanBinding, GenericConnectionManagerGBean, GeronimoCertificationAuthority, GeronimoLoginConfiguration, GeronimoWorkManagerGBean, GlobalContextGBean, HostGBean, HOWLLogGBean, Http11APRConnectorGBean, Http11ConnectorGBean, Http11NIOConnectorGBean, HTTPBlockingConnector, Https11APRConnectorGBean, Https11ConnectorGBean, Https11NIOConnectorGBean, HTTPSelectChannelConnector, HTTPSocketConnector, HTTPSSelectChannelConnector, HTTPSSocketConnector, IMAPStoreGBean, JDBCDriverRegistrationGBean, JDBCLog, JDBCStoreThreadPooledNonTransactionalTimer, JDBCStoreThreadPooledTransactionalTimer, JettyConnector, JettyContainerImpl, JettyDefaultServletHolder, JettyFilterHolder, JettyJspServletHolder, JettyPOJOWebServiceHolder, JettyServletHolder, JettyWebAppContext, JMSConnectionFactoryBean, JMXConnector, KernelConfigurationManager, KernelContextGBean, KeyStoreGBean, LifecycleListenerGBean, LifecycleProviderGBean, LocalAttributeManager, Log4jService, MailGBean, ManagedConnectionFactoryWrapper, ManagerGBean, MBeanServerKernelBridge, MEJBGBean, MembershipServiceGBean, NameService, NCSARequestLog, NNTPStoreGBean, NNTPTransportGBean, OpenORBUtil, ORBConfigAdapter, PersistenceUnitGBean, POP3StoreGBean, PropertiesLoginModuleManager, ProtocolGBean, RealmGBean, ReceiverGBean, ResourceAdapterWrapperGBean, RMIRegistryService, RoundRobinBackingStrategyFactoryGBean, SAAJGBean, SenderGBean, SMTPSTransportGBean, SMTPTransportGBean, SwitchableLocalAttributeManager, ThreadPool, ThreadPooledTimer, TomcatContainer, TomcatWebAppContext, TopicBrowserGBean, TransportConnectorGBeanImpl, TribesDispatcherHolder, TSSBean, TSSLink, ValveGBean, VMStoreThreadPooledNonTransactionalTimer, VMStoreThreadPooledTransactionalTimer, WADIClusteredPreHandlerFactory

public interface GBeanLifecycle

An optional interface for a GBean. When a GBean implements this interface, the implementation will get life-cycle callbacks.


Method Summary
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
 

Method Detail

doStart

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

Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

doStop

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

Throws:
Exception - if the target failed to stop; this will cause a transition to the failed state

doFail

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



Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.