KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > engine > csv > CsvBootstrapImpl


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: CsvBootstrapImpl.java 1089 2006-09-14 19:57:55Z dutoo $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.engine.csv;
23
24 import javax.jbi.JBIException;
25 import javax.jbi.component.Bootstrap;
26 import javax.jbi.component.InstallationContext;
27 import javax.management.ObjectName JavaDoc;
28
29 import org.w3c.dom.DocumentFragment JavaDoc;
30
31 /**
32  * This class is the bootstrap for the CSV service engine.
33  *
34  * @version $Rev: 1068 $Date: {date}
35  * @author Marc Dutoo - Open Wide
36  * @since Petals 1.0
37  *
38  */

39 public class CsvBootstrapImpl implements Bootstrap {
40
41     protected InstallationContext installContext;
42
43     public void cleanUp() throws JBIException {
44
45     }
46
47     public ObjectName JavaDoc getExtensionMBeanName() {
48         return null;
49     }
50
51     public void init(InstallationContext installCtx) throws JBIException {
52         this.installContext = installCtx;
53     }
54
55     public void onInstall() throws JBIException {
56         DocumentFragment JavaDoc f = installContext
57             .getInstallationDescriptorExtension();
58         if (f != null) {
59             System.out
60                 .println("Bootstrap contained an installation extension : "
61                     + f.getFirstChild().getNodeName());
62         }
63     }
64
65     public void onUninstall() throws JBIException {
66
67     }
68
69 }
70
Popular Tags