public Reference createReference() { return new ReferenceImpl(); }
@Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
/** * By default return the interface contract for the reference */ public InterfaceContract getInterfaceContract(Binding binding) { return getInterfaceContract(); }
public String toString() { return getName(); }
@Override public Object clone() throws CloneNotSupportedException { ReferenceImpl clone = (ReferenceImpl)super.clone(); clone.bindings = new ArrayList<Binding>(); for (Binding binding : getBindings()){ clone.bindings.add((Binding)binding.clone()); } clone.targets = new ArrayList<ComponentService>(targets); // clone the endpoint references themselves and set the reference pointer back to // this new refrence clone.endpointReferences = new ArrayList<EndpointReference>(); for (EndpointReference epr : endpointReferences) { EndpointReference eprClone = (EndpointReference)epr.clone(); eprClone.setReference((ComponentReference)clone); clone.endpointReferences.add(eprClone); } return clone; }
public String toString() { return getName(); }
@Override public Object clone() throws CloneNotSupportedException { ReferenceImpl clone = (ReferenceImpl)super.clone(); clone.bindings = new ArrayList<Binding>(); for (Binding binding : getBindings()){ clone.bindings.add((Binding)binding.clone()); } clone.targets = new ArrayList<ComponentService>(targets); // clone the endpoint references themselves and set the reference pointer back to // this new refrence clone.endpointReferences = new ArrayList<EndpointReference>(); for (EndpointReference epr : endpointReferences) { EndpointReference eprClone = (EndpointReference)epr.clone(); eprClone.setReference((ComponentReference)clone); clone.endpointReferences.add(eprClone); } return clone; }
@Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
/** * By default return the interface contract for the reference */ public InterfaceContract getInterfaceContract(Binding binding) { return getInterfaceContract(); }
public Reference createReference() { return new ReferenceImpl(); }
@Override public Object clone() throws CloneNotSupportedException { CompositeReferenceImpl copy = (CompositeReferenceImpl)super.clone(); copy.promotedComponents = new ArrayList<Component>(promotedComponents); copy.promotedReferences = new ArrayList<ComponentReference>(promotedReferences); return copy; }
@Override public Object clone() throws CloneNotSupportedException { CompositeReferenceImpl copy = (CompositeReferenceImpl)super.clone(); copy.promotedComponents = new ArrayList<Component>(promotedComponents); copy.promotedReferences = new ArrayList<ComponentReference>(promotedReferences); return copy; }