001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)SharedNamespaceTestEngineInstaller.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package classloaderregresstests.sharedlibtest.engine.boot;
030:
031: import javax.jbi.component.Bootstrap;
032: import javax.jbi.component.InstallationContext;
033: import java.util.logging.Logger;
034:
035: /**
036: * Class to install the engine.
037: *
038: * @author Sun Microsystems, Inc.
039: */
040: public class SharedNamespaceTestEngineInstaller implements Bootstrap {
041:
042: /**
043: * Internal handle to the logger instance
044: */
045: private Logger mLogger;
046:
047: /**
048: * Creates a new instance of StockQuoteEngineBootstrap
049: */
050: public SharedNamespaceTestEngineInstaller() {
051: mLogger = Logger.getLogger("boot");
052: }
053:
054: /**
055: * Cleans up any resources allocated by the bootstrap implementation,
056: * including deregistration of the extension MBean, if applicable.
057: * This method will be called after the onInstall() or onUninstall() method
058: * is called, whether it succeeds or fails.
059: * @throws javax.jbi.JBIException when cleanup processing fails to complete
060: * successfully.
061: */
062: public void cleanUp() throws javax.jbi.JBIException {
063: }
064:
065: /**
066: * Called to initialize the BC bootstrap.
067: * @param installContext is the context containing information
068: * from the install command and from the BC jar file.
069: * @throws javax.jbi.JBIException when there is an error requiring that
070: * the installation be terminated.
071: */
072: public void init(InstallationContext installContext)
073: throws javax.jbi.JBIException {
074: return;
075: }
076:
077: /**
078: * Get the JMX ObjectName for the optional installation configuration MBean
079: * for this BC. If there is none, the value is null.
080: * @return ObjectName the JMX object name of the installation configuration
081: * MBean or null if there is no MBean.
082: */
083: public javax.management.ObjectName getExtensionMBeanName() {
084: return null;
085: }
086:
087: /**
088: * Called at the beginning of installation of BPEL Engine. For this
089: * Engine, all the required installation tasks have been taken care
090: * by the InstallationService.
091: * @throws javax.jbi.JBIException when there is an error requiring that
092: * the installation be terminated.
093: */
094: public void onInstall() throws javax.jbi.JBIException {
095: mLogger.info("Installing Private Namespace Test Engine2");
096: }
097:
098: /**
099: * Called at the beginning of uninstallation of FileEngine . For this
100: * file engine, all the required uninstallation tasks have been taken care
101: * of by the InstallationService
102: * @throws javax.jbi.JBIException when there is an error requiring that
103: * the uninstallation be terminated.
104: */
105: public void onUninstall() throws javax.jbi.JBIException {
106: mLogger.info("UnInstalling Private Namespace Test Engine2");
107: }
108: }
|