1 17 package org.apache.servicemix.jbi.installation; 18 19 import javax.jbi.JBIException; 20 import javax.jbi.component.Bootstrap; 21 import javax.jbi.component.InstallationContext; 22 import javax.management.ObjectName ; 23 24 public class Bootstrap1 implements Bootstrap { 25 26 private static Bootstrap delegate; 27 private static InstallationContext installContext; 28 29 32 public void cleanUp() throws JBIException { 33 Bootstrap1.delegate.cleanUp(); 34 } 35 36 39 public ObjectName getExtensionMBeanName() { 40 return Bootstrap1.delegate.getExtensionMBeanName(); 41 } 42 43 46 public void init(InstallationContext installContext) throws JBIException { 47 Bootstrap1.installContext = installContext; 48 Bootstrap1.delegate.init(installContext); 49 } 50 51 54 public void onInstall() throws JBIException { 55 Bootstrap1.delegate.onInstall(); 56 } 57 58 61 public void onUninstall() throws JBIException { 62 Bootstrap1.delegate.onUninstall(); 63 } 64 65 68 public static Bootstrap getDelegate() { 69 return Bootstrap1.delegate; 70 } 71 72 75 public static void setDelegate(Bootstrap delegate) { 76 Bootstrap1.delegate = delegate; 77 } 78 79 82 public static InstallationContext getInstallContext() { 83 return Bootstrap1.installContext; 84 } 85 86 } 87 | Popular Tags |