| javax.jbi.component.ComponentLifeCycle
All known Subclasses: com.sun.jbi.management.binding.ModelBindingComponent, com.sun.jbi.ui.ant.test.engine4.rt.Engine4Runtime, deploytest.ConsolidatedSchemaComponent, deploytest.BadInstallBindingComponent, com.sun.jbi.ui.ant.test.binding2.rt.Binding2Runtime, com.sun.jbi.engine.sequencing.SequencingEngineLifeCycle, com.sun.jbi.binding.jms.JMSBindingLifeCycle, com.sun.jbi.ui.ant.test.statistics.SimpleTestEngine, com.sun.jbi.management.engine.ModelEngineComponent, deploytest.BadUninstallBindingComponent, testengine.PBTestEngine, deploytest.UpgradableComponent, com.sun.jbi.ui.cli.test.engine3.rt.Engine3Runtime, deploytest.BindingComponent, deploytest.ExtensionBindingComponent, classloaderregresstests.sharedlibtest.binding.rt.SharedNamespaceTestBinding, com.sun.jbi.ui.cli.test.binding2.rt.Binding2Runtime, TestBinding.PBTestBinding, com.sun.jbi.ui.cli.test.statistics.SimpleTestEngine, com.sun.jbi.internal.security.test.binding1.rt.LifeCycleImpl, classloaderregresstests.classloaderchaintest.engine.rt.ClassloaderChainTestEngine, com.sun.jbi.binding.proxy.ProxyBindingLifeCycle, testcomponent.BindingComponent, deploytest.DeployOnceBindingComponent, com.sun.jbi.ui.cli.test.engine4.rt.Engine4Runtime, classloaderregresstests.selffirstloading.engine.rt.EngineLifeCycle, testengine.FooEngine, classloaderregresstests.sharedlibtest.engine.rt.SharedNamespaceTestEngine, com.sun.jbi.ui.ant.test.binding1.rt.Binding1Runtime, com.sun.jbi.ui.cli.test.engine1.rt.Engine1Runtime, java4ant.BindingComponent, com.sun.jbi.ui.ant.test.engine1.rt.Engine1Runtime, com.sun.jbi.ui.ant.test.engine2.rt.Engine2Runtime, com.sun.jbi.binding.file.FileBindingLifeCycle, com.sun.jbi.engine.xslt.TransformationEngineLifeCycle, classloaderregresstests.privatelibtest.engine.rt.PrivateNamespaceTestEngine, com.sun.jbi.ui.cli.test.engine2.rt.Engine2Runtime, com.sun.jbi.ui.ant.test.engine3.rt.Engine3Runtime, deploytest.StartOneDeploymentComponent, test.SimpleTestEngine, deploytest.FileLockingComponent, testengine2.FooEngine, test.BindingComponent, deploytest.DeployBinding, feederengine.CSVFeederEngineLifeCycle, com.sun.jbi.ui.cli.test.binding1.rt.Binding1Runtime, testcomponent1.BindingComponent1, testengine1.FooEngine,
ComponentLifeCycle | public interface ComponentLifeCycle (Code) | | This interface must be implemented by a JBI component to provide
initialization, start, stop, and shutdown life cycle processing. These
methods comprise the life cycle contract between the JBI implementation and
the component. The life cycle of a component begins with a call to the init()
method on an instance of the component's implementation of this interface,
and ends with the first call to the shutDown() method on that instance.
Between these two calls, there can be any number of stop() and start() calls.
The JBI implementation must track the running state of a component, and
ensure that life cycle state changes are always legal. For example, if
the management interface for controlling a component's life cycle
(
javax.jbi.management.ComponentLifeCycleMBean ) is used to start
a component that was just installed (and thus in the Shutdown state),
the implementation must invoke this component's
ComponentLifeCycle.init(ComponentContext) method before invoking its
ComponentLifeCycle.start() method.
author: JSR208 Expert Group |
getExtensionMBeanName | ObjectName getExtensionMBeanName()(Code) | | Get the JMX object name for the extension MBean for this component; if
there is none, return null .
the JMX object name of the additional MBean or null if there is no additional MBean. |
init | void init(ComponentContext context) throws JBIException(Code) | | Initialize the component. This performs initialization required by the
component but does not make it ready to process messages. This method is
called once for each life cycle of the component.
If the component needs to register an additional MBean to extend its
life cycle, or provide other component management tasks, it should
be registered during this call.
Parameters: context - the component's context, providing access to componentdata provided by the JBI environment; must be non-null. exception: JBIException - if the component is unable to initialize. |
|
|