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.camel.component.jbi; 018 019 import javax.jbi.management.DeploymentException; 020 import org.apache.camel.builder.RouteBuilder; 021 import org.apache.servicemix.common.Deployer; 022 import org.apache.servicemix.common.ServiceMixComponent; 023 import org.apache.servicemix.common.ServiceUnit; 024 025 /** 026 * Deploys service units 027 * @version $Revision: 426415 $ 028 */ 029 public class CamelContainerDeployer implements Deployer { 030 031 private RouteBuilder[] builders; 032 ServiceUnit serviceUnit; 033 CamelContainerDeployer(ServiceMixComponent component,RouteBuilder[] builders){ 034 this.serviceUnit = new ServiceUnit(component); 035 this.builders = builders; 036 //need to wire-up here 037 } 038 /** 039 * @param serviceUnitName 040 * @param serviceUnitRootPath 041 * @return 042 * @see org.apache.servicemix.common.Deployer#canDeploy(java.lang.String, java.lang.String) 043 */ 044 public boolean canDeploy(String serviceUnitName,String serviceUnitRootPath){ 045 // TODO Auto-generated method stub 046 return false; 047 } 048 049 /** 050 * @param serviceUnitName 051 * @param serviceUnitRootPath 052 * @return 053 * @throws DeploymentException 054 * @see org.apache.servicemix.common.Deployer#deploy(java.lang.String, java.lang.String) 055 */ 056 public ServiceUnit deploy(String serviceUnitName,String serviceUnitRootPath) throws DeploymentException{ 057 // TODO Auto-generated method stub 058 return null; 059 } 060 061 /** 062 * @param su 063 * @throws DeploymentException 064 * @see org.apache.servicemix.common.Deployer#undeploy(org.apache.servicemix.common.ServiceUnit) 065 */ 066 public void undeploy(ServiceUnit su) throws DeploymentException{ 067 // TODO Auto-generated method stub 068 069 } 070 071 072 073 }