diff options
Diffstat (limited to '')
2 files changed, 8 insertions, 19 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java index 455286a798..1fc8a1ce3c 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java @@ -25,7 +25,6 @@ import java.util.List; import org.apache.tuscany.sca.assembly.Binding; import org.apache.tuscany.sca.assembly.Callback; import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.Endpoint; import org.apache.tuscany.sca.assembly.EndpointReference2; import org.apache.tuscany.sca.assembly.Reference; import org.apache.tuscany.sca.interfacedef.InterfaceContract; @@ -42,20 +41,15 @@ public class ReferenceImpl extends AbstractReferenceImpl implements Reference, C private List<PolicySet> policySets = new ArrayList<PolicySet>(); private List<ComponentService> targets = new ArrayList<ComponentService>(); private Callback callback; - private List<PolicySet> applicablePolicySets = new ArrayList<PolicySet>(); private boolean promotionOverride; private List<EndpointReference2> endpointReferences = new ArrayList<EndpointReference2>(); - public List<PolicySet> getApplicablePolicySets() { - return applicablePolicySets; - } - /** * Constructs a new reference. */ protected ReferenceImpl() { } - + @Override public Object clone() throws CloneNotSupportedException { ReferenceImpl clone = (ReferenceImpl)super.clone(); @@ -121,18 +115,18 @@ public class ReferenceImpl extends AbstractReferenceImpl implements Reference, C public void setCallback(Callback callback) { this.callback = callback; } - + public void setPolicySets(List<PolicySet> policySets) { - this.policySets = policySets; + this.policySets = policySets; } - + /** * By default return the interface contract for the reference */ - public InterfaceContract getInterfaceContract(Binding binding){ + public InterfaceContract getInterfaceContract(Binding binding) { return getInterfaceContract(); - } - + } + public List<EndpointReference2> getEndpointReferences() { return endpointReferences; } diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java index 28ea33cc81..daad1466f0 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java @@ -24,7 +24,6 @@ import java.util.List; import org.apache.tuscany.sca.assembly.Binding; import org.apache.tuscany.sca.assembly.Callback; -import org.apache.tuscany.sca.assembly.Endpoint; import org.apache.tuscany.sca.assembly.Endpoint2; import org.apache.tuscany.sca.assembly.Service; import org.apache.tuscany.sca.interfacedef.InterfaceContract; @@ -39,12 +38,8 @@ public class ServiceImpl extends AbstractServiceImpl implements Service, Cloneab private List<Binding> bindings = new ArrayList<Binding>(); private List<PolicySet> policySets = new ArrayList<PolicySet>(); private Callback callback; - private List<PolicySet> applicablePolicySets = new ArrayList<PolicySet>(); private List<Endpoint2> endpoints = new ArrayList<Endpoint2>(); - - public List<PolicySet> getApplicablePolicySets() { - return applicablePolicySets; - } + /** * Constructs a new service. |