From 1f8bafbfc5aa7b5ca4d64e220498b83141243dfd Mon Sep 17 00:00:00 2001 From: rfeng Date: Mon, 18 May 2009 16:46:33 +0000 Subject: Change the creation of DistributedSCABinding to the factory to avoid OSGi violations git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@776005 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/assembly/SCABindingFactory.java | 12 +++++++----- .../sca/assembly/impl/SCABindingFactoryImpl.java | 19 ++++++++++++------- 2 files changed, 19 insertions(+), 12 deletions(-) (limited to 'java/sca/modules/assembly') diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABindingFactory.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABindingFactory.java index 0abfd13d10..74dde43614 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABindingFactory.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABindingFactory.java @@ -6,31 +6,33 @@ * 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. + * under the License. */ package org.apache.tuscany.sca.assembly; /** * A factory for the SCA binding model - * + * * @version $Rev$ $Date$ */ public interface SCABindingFactory { /** * Create a new SCA binding. - * + * * @return a new SCA binding */ SCABinding createSCABinding(); + DistributedSCABinding createDistributedSCABinding(); + } diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/SCABindingFactoryImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/SCABindingFactoryImpl.java index ef429a649e..7e311d8312 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/SCABindingFactoryImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/SCABindingFactoryImpl.java @@ -6,35 +6,40 @@ * 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. + * under the License. */ package org.apache.tuscany.sca.assembly.impl; +import org.apache.tuscany.sca.assembly.DistributedSCABinding; import org.apache.tuscany.sca.assembly.SCABinding; import org.apache.tuscany.sca.assembly.SCABindingFactory; /** * A factory for the SCA binding model. - * + * * @version $Rev$ $Date$ */ public class SCABindingFactoryImpl implements SCABindingFactory { - + public SCABindingFactoryImpl (){ - + } public SCABinding createSCABinding() { return new SCABindingImpl(); } - + + public DistributedSCABinding createDistributedSCABinding() { + return new DistributedSCABindingImpl(); + } + } -- cgit v1.2.3