KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > servicemix > components > util > ServiceUnitManagerSupport


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.components.util;
18
19 import javax.jbi.component.ServiceUnitManager;
20 import javax.jbi.management.DeploymentException;
21
22 /**
23  * component-supplied methods for managing Service Unit deployments
24  *
25  * @version $Revision: 426415 $
26  */

27 public class ServiceUnitManagerSupport implements ServiceUnitManager {
28     /**
29      * Deploy a Service Unit to the Component
30      *
31      * @param serviceUnitName
32      * @param serviceUnitRootPath
33      * @return a deployment status message
34      * @throws DeploymentException
35      */

36     public String JavaDoc deploy(String JavaDoc serviceUnitName, String JavaDoc serviceUnitRootPath) throws DeploymentException {
37         return serviceUnitRootPath;
38     }
39
40     /**
41      * Initialize Deployment
42      *
43      * @param serviceUnitName
44      * @param serviceUnitRootPath
45      * @throws DeploymentException
46      */

47     public void init(String JavaDoc serviceUnitName, String JavaDoc serviceUnitRootPath) throws DeploymentException {
48     }
49
50     /**
51      * shutdown
52      *
53      * @param saerviceUnitName
54      * @throws DeploymentException
55      */

56     public void shutDown(String JavaDoc saerviceUnitName) throws DeploymentException {
57     }
58
59     /**
60      * start the deployment
61      *
62      * @param serviceUnitName
63      * @throws DeploymentException
64      */

65     public void start(String JavaDoc serviceUnitName) throws DeploymentException {
66     }
67
68     /**
69      * stop the deployment
70      *
71      * @param serviceUnitName
72      * @throws DeploymentException
73      */

74     public void stop(String JavaDoc serviceUnitName) throws DeploymentException {
75     }
76
77     /**
78      * Undeploy a Service Unit form the Component
79      *
80      * @param serviceUnitName
81      * @param serviceUnitRootPath
82      * @return a status message
83      * @throws DeploymentException
84      */

85     public String JavaDoc undeploy(String JavaDoc serviceUnitName, String JavaDoc serviceUnitRootPath) throws DeploymentException {
86         return serviceUnitRootPath;
87     }
88 }
Popular Tags