diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-22 05:46:14 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-22 05:46:14 +0000 |
commit | 529069d71b5e4628138a81fd6cc3e318c3713e29 (patch) | |
tree | d775ad25fa0bdec19dc39238324ace71c7512929 | |
parent | f706ccab9f434018d9d5e18c68419b000230f81f (diff) |
Expose a DefaultDeployer
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@828316 13f79535-47bb-0310-9956-ffa450edef68
3 files changed, 44 insertions, 2 deletions
diff --git a/java/sca/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/DefaultDeployer.java b/java/sca/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/DefaultDeployer.java new file mode 100644 index 0000000000..42c7596b15 --- /dev/null +++ b/java/sca/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/DefaultDeployer.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.deployment; + +import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.deployment.impl.DeployerImpl; + +/** + * Default implementation of Deployer + */ +public class DefaultDeployer extends DeployerImpl { + + public DefaultDeployer() { + super(new DefaultExtensionPointRegistry()); + } + + /** + * @param registry + */ + public DefaultDeployer(ExtensionPointRegistry registry) { + super(registry); + } + +} diff --git a/java/sca/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java b/java/sca/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java index 3b06aa4d93..458a581ac0 100644 --- a/java/sca/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java +++ b/java/sca/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java @@ -109,7 +109,7 @@ public class DeployerImpl implements Deployer { super(); this.registry = registry; } - + public Monitor createMonitor() { init(); return monitorFactory.createMonitor(); diff --git a/java/sca/modules/deployment/src/main/resources/META-INF/services/org.apache.tuscany.sca.deployment.Deployer b/java/sca/modules/deployment/src/main/resources/META-INF/services/org.apache.tuscany.sca.deployment.Deployer index 9ba95bc94b..b0a099620d 100644 --- a/java/sca/modules/deployment/src/main/resources/META-INF/services/org.apache.tuscany.sca.deployment.Deployer +++ b/java/sca/modules/deployment/src/main/resources/META-INF/services/org.apache.tuscany.sca.deployment.Deployer @@ -14,4 +14,4 @@ # KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-org.apache.tuscany.sca.deployment.impl.DeployerImpl
+org.apache.tuscany.sca.deployment.DefaultDeployer
|