KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > servicemix > jbi > installation > Bootstrap2


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

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 JavaDoc;
23
24 public class Bootstrap2 implements Bootstrap {
25
26     private static Bootstrap delegate;
27
28     /* (non-Javadoc)
29      * @see javax.jbi.component.Bootstrap#cleanUp()
30      */

31     public void cleanUp() throws JBIException {
32         delegate.cleanUp();
33     }
34
35     /* (non-Javadoc)
36      * @see javax.jbi.component.Bootstrap#getExtensionMBeanName()
37      */

38     public ObjectName JavaDoc getExtensionMBeanName() {
39         return delegate.getExtensionMBeanName();
40     }
41
42     /* (non-Javadoc)
43      * @see javax.jbi.component.Bootstrap#init(javax.jbi.component.InstallationContext)
44      */

45     public void init(InstallationContext installContext) throws JBIException {
46         delegate.init(installContext);
47     }
48
49     /* (non-Javadoc)
50      * @see javax.jbi.component.Bootstrap#onInstall()
51      */

52     public void onInstall() throws JBIException {
53         delegate.onInstall();
54     }
55
56     /* (non-Javadoc)
57      * @see javax.jbi.component.Bootstrap#onUninstall()
58      */

59     public void onUninstall() throws JBIException {
60         delegate.onUninstall();
61     }
62
63     /**
64      * @return Returns the delegate.
65      */

66     public static Bootstrap getDelegate() {
67         return delegate;
68     }
69
70     /**
71      * @param delegate The delegate to set.
72      */

73     public static void setDelegate(Bootstrap delegate) {
74         Bootstrap2.delegate = delegate;
75     }
76     
77 }
78
Popular Tags