KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > jbi > serviceengine > core > JavaEEServiceEngineBootstrap


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.enterprise.jbi.serviceengine.core;
24
25
26
27
28 import javax.jbi.JBIException;
29 import javax.jbi.component.Bootstrap;
30 import javax.jbi.component.InstallationContext;
31
32 /**
33  * Bootstrap class for installation purpose
34  * @author Manisha Umbarje
35  */

36 public class JavaEEServiceEngineBootstrap
37         implements Bootstrap {
38
39     /**
40      * This is the installation context given by the framework.
41      */

42     private InstallationContext context;
43
44     
45     
46     /** Creates a new instance of JavaEEServiceEngineBootstrap */
47     public JavaEEServiceEngineBootstrap() {
48     }
49
50     /**
51      * Cleans up any resources allocated by the bootstrap implementation,
52      * including deregistration of the extension MBean, if applicable.
53      * This method will be called after the onInstall() or onUninstall() method
54      * is called, whether it succeeds or fails.
55      * @throws javax.jbi.JBIException when cleanup processing fails to complete
56      * successfully.
57      */

58     public void cleanUp() throws JBIException {
59     }
60
61     /**
62      * Get the JMX ObjectName for the optional installation configuration MBean
63      * for this BC. If there is none, the value is null.
64      *
65      * @return ObjectName the JMX object name of the installation configuration
66      * MBean or null if there is no MBean.
67      */

68     public javax.management.ObjectName JavaDoc getExtensionMBeanName(){
69         return null;
70     }
71
72     /**
73      * Called to initialize the BC bootstrap.
74      *
75      * @param installContext is the context containing information from the
76      * install command and from the BC jar JavaEEServiceEngine.
77      *
78      * @throws javax.jbi.JBIException when there is an error requiring that the
79      * installation be terminated.
80      */

81     public void init(InstallationContext installContext)
82         throws JBIException {
83         context = installContext;
84     }
85
86     /**
87      * Called at the beginning of installation of JavaEEServiceEngine Binding .
88      * For this JavaEEServiceEngine, all the required installation tasks have
89      * been taken care by the InstallationService.
90      *
91      * @throws javax.jbi.JBIException when there is an error requiring that the
92      * installation be terminated.
93      */

94     public void onInstall() throws JBIException {
95     }
96
97     /**
98      * Called at the beginning of uninstallation of JavaEEServiceEngineBinding .
99      * For this JavaEEServiceEngine, all the required uninstallation tasks
100      * have been taken care of by the InstallationService
101      *
102      * @throws javax.jbi.JBIException when there is an error requiring that the
103      * uninstallation be terminated.
104      */

105     public void onUninstall() throws JBIException {
106     }
107 }
108
Popular Tags