001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.servicemix.components.util;
018
019 import javax.jbi.component.ServiceUnitManager;
020 import javax.jbi.management.DeploymentException;
021
022 /**
023 * component-supplied methods for managing Service Unit deployments
024 *
025 * @version $Revision: 426415 $
026 */
027 public class ServiceUnitManagerSupport implements ServiceUnitManager {
028 /**
029 * Deploy a Service Unit to the Component
030 *
031 * @param serviceUnitName
032 * @param serviceUnitRootPath
033 * @return a deployment status message
034 * @throws DeploymentException
035 */
036 public String deploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException {
037 return serviceUnitRootPath;
038 }
039
040 /**
041 * Initialize Deployment
042 *
043 * @param serviceUnitName
044 * @param serviceUnitRootPath
045 * @throws DeploymentException
046 */
047 public void init(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException {
048 }
049
050 /**
051 * shutdown
052 *
053 * @param saerviceUnitName
054 * @throws DeploymentException
055 */
056 public void shutDown(String saerviceUnitName) throws DeploymentException {
057 }
058
059 /**
060 * start the deployment
061 *
062 * @param serviceUnitName
063 * @throws DeploymentException
064 */
065 public void start(String serviceUnitName) throws DeploymentException {
066 }
067
068 /**
069 * stop the deployment
070 *
071 * @param serviceUnitName
072 * @throws DeploymentException
073 */
074 public void stop(String serviceUnitName) throws DeploymentException {
075 }
076
077 /**
078 * Undeploy a Service Unit form the Component
079 *
080 * @param serviceUnitName
081 * @param serviceUnitRootPath
082 * @return a status message
083 * @throws DeploymentException
084 */
085 public String undeploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException {
086 return serviceUnitRootPath;
087 }
088 }