org.apache.geronimo.gbean
Interface GBeanLifecycle

All Known Implementing Classes:
AbstractHttp11ConnectorGBean, AdminConsoleExtensionGBean, AJP13Connector, AJP13ConnectorGBean, AppClientContainer, AppClientCORBABean, AppClientModuleBuilder, ApplicationPolicyConfigurationManager, Axis2ConfigGBean, BaseHttp11ConnectorGBean, BasicClusterConfigurationController, BasicWADICluster, BasicWADISessionManager, BrokerServiceGBeanImpl, CatalinaClusterGBean, ChannelGBean, ClusterDeployerGBean, ClusterListenerGBean, Configuration, ConfigurationMonitorGBean, ConfiguredEncryption, ConnectionTrackingCoordinatorGBean, ConnectorGBean, ConnectorModuleBuilder, ConsoleResourceGBean, CORBABean, CorbaModuleBuilderExtension, CSSBean, Deployer, DerbyNetworkGBean, DerbySystemGBean, DirectoryHotDeployer, DynamicStubClassLoader, EARConfigBuilder, EditableKernelConfigurationManager, EjbContainer, EjbDaemonGBean, EjbDeploymentGBean, EjbModuleBuilder, EjbModuleImplGBean, EjbWebServiceGBean, EJBWebServiceGBean, EJBWebServiceGBean, EngineGBean, EnvironmentEntryBuilder, FarmWarDeployerGBean, FileCertificateRequestStore, FileCertificateStore, FileKeystoreInstance, FileKeystoreManager, GBeanBinding, GBeanFormatBinding, GenericConnectionManagerGBean, GeronimoCertificationAuthority, GeronimoLoginConfiguration, GeronimoSecurityBuilderImpl, 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, JettyModuleBuilder, JettyPOJOWebServiceHolder, JettyServletHolder, JettyWebAppContext, JMSConnectionFactoryBean, JMXConnector, JMXSecureConnector, KernelConfigurationManager, KernelContextGBean, KeyStoreGBean, LifecycleListenerGBean, LifecycleProviderGBean, LocalAttributeManager, Log4jService, MailGBean, ManagedConnectionFactoryWrapper, ManagerGBean, MasterRemoteControlJMX, MBeanServerKernelBridge, MEJBGBean, MembershipServiceGBean, NameService, NCSARequestLog, NNTPStoreGBean, NNTPTransportGBean, OpenORBUtil, ORBConfigAdapter, PersistenceUnitGBean, POP3StoreGBean, PortalContainerServicesGBean, PropertiesLoginModuleManager, ProtocolGBean, RealmGBean, ReceiverGBean, ResourceAdapterWrapperGBean, ResourceBinding, RMIRegistryService, RoundRobinBackingStrategyFactoryGBean, SAAJGBean, SenderGBean, ServiceConfigBuilder, SMTPSTransportGBean, SMTPTransportGBean, StaticMemberGBean, SwitchableLocalAttributeManager, ThreadPool, ThreadPooledTimer, TomcatContainer, TomcatModuleBuilder, TomcatWebAppContext, TopicBrowserGBean, TransportConnectorGBeanImpl, TribesDispatcherHolder, TSSBean, TSSLink, ValveGBean, VMStoreThreadPooledNonTransactionalTimer, VMStoreThreadPooledTransactionalTimer, WADIClusteredPreHandlerFactory, WADIClusteredValveRetriever

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-2008 The Apache Geronimo development community. All Rights Reserved.