org.apache.tuscany.sca.assembly.impl
Class WireImpl

java.lang.Object
  extended by org.apache.tuscany.sca.assembly.impl.BaseImpl
      extended by org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
          extended by org.apache.tuscany.sca.assembly.impl.WireImpl
All Implemented Interfaces:
java.lang.Cloneable, Base, Extensible, Wire, IntentAttachPoint, PolicySetAttachPoint

public class WireImpl
extends ExtensibleImpl
implements Wire, java.lang.Cloneable

Represents a wire


Constructor Summary
protected WireImpl()
          Constructs a new wire.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of the wire.
 java.util.List<PolicySet> getApplicablePolicySets()
          Returns a list of policy sets defined in the domain, that are applicable to this PolicySetAttachPoint.
 java.util.List<PolicySet> getPolicySets()
          Returns a list of policy sets.
 java.util.List<Intent> getRequiredIntents()
          Returns a list of policy intents.
 ComponentReference getSource()
          Returns the source of the wire.
 ComponentService getTarget()
          Returns the target of the wire.
 IntentAttachPointType getType()
          Returns the type of the attach point such as a BindingType or an ImplementationType and so on
 void setPolicySets(java.util.List<PolicySet> policySets)
           
 void setRequiredIntents(java.util.List<Intent> intents)
           
 void setSource(ComponentReference source)
          Sets the source of the wire.
 void setTarget(ComponentService target)
          Sets the target of the wire.
 void setType(IntentAttachPointType type)
          Sets the type of the attach point such as a BindingType or an ImplementationType and so on
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
getExtensions
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.BaseImpl
isUnresolved, setUnresolved
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Extensible
getExtensions
 

Constructor Detail

WireImpl

protected WireImpl()
Constructs a new wire.

Method Detail

getApplicablePolicySets

public java.util.List<PolicySet> getApplicablePolicySets()
Description copied from interface: PolicySetAttachPoint
Returns a list of policy sets defined in the domain, that are applicable to this PolicySetAttachPoint. An applicable PolicySet is one that include this PolicySetAttachPoint as part of its 'appliesTo' XPath attribute.

Specified by:
getApplicablePolicySets in interface PolicySetAttachPoint
Returns:
a list of policy sets applicable to this PolicySetAttachPoint

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: Wire
Returns a clone of the wire.

Specified by:
clone in interface Wire
Overrides:
clone in class java.lang.Object
Returns:
a clone of the wire
Throws:
java.lang.CloneNotSupportedException

getSource

public ComponentReference getSource()
Description copied from interface: Wire
Returns the source of the wire.

Specified by:
getSource in interface Wire
Returns:
the source of the wire

getTarget

public ComponentService getTarget()
Description copied from interface: Wire
Returns the target of the wire.

Specified by:
getTarget in interface Wire
Returns:
the target of the wire

setSource

public void setSource(ComponentReference source)
Description copied from interface: Wire
Sets the source of the wire.

Specified by:
setSource in interface Wire
Parameters:
source - the source of the wire

setTarget

public void setTarget(ComponentService target)
Description copied from interface: Wire
Sets the target of the wire.

Specified by:
setTarget in interface Wire
Parameters:
target - the target of the wire

getRequiredIntents

public java.util.List<Intent> getRequiredIntents()
Description copied from interface: IntentAttachPoint
Returns a list of policy intents. See the Policy Framework specification for a description of this attribute.

Specified by:
getRequiredIntents in interface IntentAttachPoint
Returns:
a list of policy intents.

getPolicySets

public java.util.List<PolicySet> getPolicySets()
Description copied from interface: PolicySetAttachPoint
Returns a list of policy sets. See the Policy Framework specification for a description of this attribute.

Specified by:
getPolicySets in interface PolicySetAttachPoint
Returns:
a list of policy sets.

getType

public IntentAttachPointType getType()
Description copied from interface: IntentAttachPoint
Returns the type of the attach point such as a BindingType or an ImplementationType and so on

Specified by:
getType in interface IntentAttachPoint
Returns:

setType

public void setType(IntentAttachPointType type)
Description copied from interface: IntentAttachPoint
Sets the type of the attach point such as a BindingType or an ImplementationType and so on

Specified by:
setType in interface IntentAttachPoint

setPolicySets

public void setPolicySets(java.util.List<PolicySet> policySets)

setRequiredIntents

public void setRequiredIntents(java.util.List<Intent> intents)