Java Doc for Bootstrap.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.Bootstrap

All known Subclasses:   deploytest.BadInstallBindingComponent,  testengine2.FooEngineBootstrap,  testengine.FooEngineBootstrap,  feederengine.CSVFeederEngineBootstrap,  com.sun.jbi.ui.cli.test.binding1.boot.Binding1Installer,  deploytest.BindingComponent,  testengine1.FooEngineBootstrap,  com.sun.jbi.ui.cli.test.statistics.SimpleTestEngine,  classloaderregresstests.sharedlibtest.engine.boot.SharedNamespaceTestEngineInstaller,  com.sun.jbi.ui.ant.test.engine2.boot.Engine2Installer,  java4ant.BindingComponent,  com.sun.jbi.binding.proxy.ProxyBindingBootstrap,  classloaderregresstests.sharedlibtest.binding.boot.SharedNamespaceTestBindingInstaller,  com.sun.jbi.ui.cli.test.engine2.boot.Engine2Installer,  com.sun.jbi.ui.ant.test.engine4.boot.Engine4Installer,  extension.ExtensionComponent,  com.sun.jbi.ui.ant.test.binding2.boot.Binding2Installer,  com.sun.jbi.engine.xslt.TransformationEngineBootstrap,  com.sun.jbi.management.binding.ModelBindingInstaller,  testengine.PBTestEngineBootstrap,  com.sun.jbi.binding.file.FileBindingBootstrap,  classloaderregresstests.privatelibtest.engine.boot.PrivateNamespaceTestEngineInstaller,  deploytest.StartOneDeploymentComponent,  deploytest.FileLockingComponent,  TestBinding.PBTestBindingBootstrap,  com.sun.jbi.ui.cli.test.engine1.boot.Engine1Installer,  com.sun.jbi.ui.ant.test.engine1.boot.Engine1Installer,  deploytest.DeployBinding,  testcomponent1.BindingComponent1,  restart.BaseComponent,  com.sun.jbi.ui.cli.test.engine4.boot.Engine4Installer,  deploytest.ConsolidatedSchemaComponent,  TestBinding.BindingBootstrap,  com.sun.jbi.ui.ant.test.statistics.SimpleTestEngine,  com.sun.jbi.internal.security.test.binding1.boot.BootstrapImpl,  deploytest.BadUninstallBindingComponent,  com.sun.jbi.ui.ant.test.engine3.boot.Engine3Installer,  com.sun.jbi.ui.cli.test.binding2.boot.Binding2Installer,  deploytest.UpgradableComponent,  deploytest.ExtensionBindingComponent,  com.sun.jbi.engine.sequencing.SequencingEngineBootstrap,  testcomponent.BindingComponent,  deploytest.DeployOnceBindingComponent,  classloaderregresstests.classloaderchaintest.engine.boot.ClassloaderChainTestEngineInstaller,  com.sun.jbi.framework.BindingBootstrap,  com.sun.jbi.binding.jms.JMSBindingBootstrap,  com.sun.jbi.ui.ant.test.binding1.boot.Binding1Installer,  classloaderregresstests.selffirstloading.engine.boot.EngineInstaller,  com.sun.jbi.ui.cli.test.engine3.boot.Engine3Installer,  com.sun.jbi.framework.EngineBootstrap,  com.sun.jbi.management.engine.ModelEngineInstaller,  test.SimpleTestEngine,  test.BindingComponent,
Bootstrap
public interface Bootstrap (Code)
This interface is implemented by a JBI Component to provide any special processing required at install/uninstall time. The methods defined here are called by the JBI implementation during the installation (or uninstallation) of the component that, among other things, supplies an implementation of this interface.

Initialization/cleanup tasks such as creation/deletion of directories, files, and database tables can be done by the Bootstrap.onInstall() and Bootstrap.onUninstall() methods, respectively. This also allows the component to terminate the installation or uninstallation in the event of an error.

After calling Bootstrap.onInstall() or Bootstrap.onUninstall() , regardless of outcome, the JBI implementation must call the Bootstrap.cleanUp() method afterwards. Similarly, if Bootstrap.init(InstallationContext) fails with an exception, the JBI implementation must call the Bootstrap.cleanUp() method.

Component implementors should note that there is no guarantee that the same instance of its Bootstrap implementation will be used during both install and uninstall operations on the component. Data that need to be retained between installation-time and uninstallation-time must be persisted in such as fashion that a separate instance of the bootstrap class can find them, despite component or system shutdown.
author:
   JSR208 Expert Group





Method Summary
 voidcleanUp()
     Cleans up any resources allocated by the bootstrap implementation, including performing deregistration of the extension MBean, if applicable.

This method must be called after the onInstall() or onUninstall() method is called, whether it succeeds or fails.

 ObjectNamegetExtensionMBeanName()
     Obtains the ObjectName of the optional installer configuration MBean.
 voidinit(InstallationContext installContext)
     Initializes the installation environment for a component.
 voidonInstall()
     Called at the beginning of installation of a component to perform any special installation tasks required by the component.
 voidonUninstall()
     Called at the beginning of uninstallation of a component to perform any special uninstallation tasks required by the component.



Method Detail
cleanUp
void cleanUp() throws JBIException(Code)
Cleans up any resources allocated by the bootstrap implementation, including performing deregistration of the extension MBean, if applicable.

This method must be called after the onInstall() or onUninstall() method is called, whether it succeeds or fails. It must be called after init() is called, if init() fails by throwing an exception.
exception:
  JBIException - if the bootstrap cannot clean up allocatedresources




getExtensionMBeanName
ObjectName getExtensionMBeanName()(Code)
Obtains the ObjectName of the optional installer configuration MBean. If none is provided by this component, this method must return null.

This method must be called before onInstall() (or onUninstall()) is called by the JBI implementation. ObjectName of the optional installer configuration MBean; returns null if there is no such MBean




init
void init(InstallationContext installContext) throws JBIException(Code)
Initializes the installation environment for a component. This method is expected to save any information from the installation context that may be needed by other methods.

If the component needs to register an optional installer configuration MBean, it MUST do so during execution of this method, or the getExtensionMBean() method.

This method must be called after the installation root (available through the installContext parameter) is prepared.
Parameters:
  installContext - the context containing information from theinstall command and from the component installationZIP file; this must be non-null.
exception:
  JBIException - when there is an error requiring thatthe installation be terminated




onInstall
void onInstall() throws JBIException(Code)
Called at the beginning of installation of a component to perform any special installation tasks required by the component.

This method must not be called if the init() method failed with an exception.
exception:
  JBIException - when there is an error requiring thatthe installation be terminated




onUninstall
void onUninstall() throws JBIException(Code)
Called at the beginning of uninstallation of a component to perform any special uninstallation tasks required by the component.

This method must not be called if the init() method failed with an exception.
exception:
  JBIException - when there is an error requiring thatthe uninstallation be terminated.




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