org.apache.tuscany.sca.assembly
Interface Reference

All Superinterfaces:
AbstractContract, AbstractReference, Base, Contract, IntentAttachPoint, PolicySetAttachPoint
All Known Subinterfaces:
ComponentReference, CompositeReference, RuntimeComponentReference

public interface Reference
extends AbstractReference, Contract

Represents a reference. References within an implementation represent links to services that the implementation uses that must be provided by other components.

Version:
$Rev: 537384 $ $Date: 2007-05-12 12:02:56 +0100 (Sat, 12 May 2007) $

Method Summary
 java.lang.Object clone()
          Returns a clone of the reference.
 java.util.List<ComponentService> getTargets()
          Returns the targets of this reference.
 boolean isWiredByImpl()
          Returns a boolean value, "false" by default, which indicates that the implementation wires this reference dynamically.
 void setWiredByImpl(boolean wiredByImpl)
          Sets a boolean value, "false" by default, which indicates that the implementation wires this reference dynamically.
 
Methods inherited from interface org.apache.tuscany.sca.assembly.AbstractReference
getMultiplicity, setMultiplicity
 
Methods inherited from interface org.apache.tuscany.sca.assembly.AbstractContract
getInterfaceContract, getName, setInterfaceContract, setName
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
getExtensions, isUnresolved, setUnresolved
 
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint
getRequiredIntents
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Contract
getBinding, getBindings, getCallback, setCallback
 
Methods inherited from interface org.apache.tuscany.sca.assembly.AbstractContract
getInterfaceContract, getName, setInterfaceContract, setName
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
getExtensions, isUnresolved, setUnresolved
 
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint
getRequiredIntents
 
Methods inherited from interface org.apache.tuscany.sca.policy.PolicySetAttachPoint
getPolicySets
 
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint
getRequiredIntents
 

Method Detail

isWiredByImpl

boolean isWiredByImpl()
Returns a boolean value, "false" by default, which indicates that the implementation wires this reference dynamically.

Returns:
true if the implementation wires this reference dynamically

setWiredByImpl

void setWiredByImpl(boolean wiredByImpl)
Sets a boolean value, "false" by default, which indicates that the implementation wires this reference dynamically.

Parameters:
wiredByImpl - whether the implementation wires this reference dynamically

getTargets

java.util.List<ComponentService> getTargets()
Returns the targets of this reference.

Returns:
the targets of this reference.

clone

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns a clone of the reference.

Returns:
a clone of the reference
Throws:
java.lang.CloneNotSupportedException