Java Doc for ComponentLifeCycle.java in  » ESB » open-esb » javax » jbi » component » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ESB » open esb » javax.jbi.component 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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





Method Summary
 ObjectNamegetExtensionMBeanName()
     Get the JMX object name for the extension MBean for this component; if there is none, return null.
 voidinit(ComponentContext context)
     Initialize the component.
 voidshutDown()
     Shut down the component.
 voidstart()
     Start the component.
 voidstop()
     Stop the component.



Method Detail
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 nullif 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.




shutDown
void shutDown() throws JBIException(Code)
Shut down the component. This performs clean-up, releasing all run-time resources used by the component. Once this method has been called, ComponentLifeCycle.init(ComponentContext) must be called before the component can be started again with a call to ComponentLifeCycle.start() .
exception:
  JBIException - if the component is unable to shut down.



start
void start() throws JBIException(Code)
Start the component. This makes the component ready to process messages. This method is called after ComponentLifeCycle.init(ComponentContext) , both when the component is being started for the first time and when the component is being restarted after a previous call to ComponentLifeCycle.shutDown() . If ComponentLifeCycle.stop() was called previously but ComponentLifeCycle.shutDown() was not, start() can be called again without another call to ComponentLifeCycle.init(ComponentContext) .
exception:
  JBIException - if the component is unable to start.



stop
void stop() throws JBIException(Code)
Stop the component. This makes the component stop accepting messages for processing. After a call to this method, ComponentLifeCycle.start() may be called again without first calling ComponentLifeCycle.init(ComponentContext) .
exception:
  JBIException - if the component is unable to stop.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.