1 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 ; 28 29 import org.w3c.dom.DocumentFragment ; 30 31 39 public class CsvBootstrapImpl implements Bootstrap { 40 41 protected InstallationContext installContext; 42 43 public void cleanUp() throws JBIException { 44 45 } 46 47 public ObjectName 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 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 |