org.apache.tuscany.sca.assembly
Interface Reference

All Superinterfaces:
AbstractContract, AbstractReference, Base, java.lang.Cloneable, Contract, Extensible, IntentAttachPoint, OperationsConfigurator, PolicySetAttachPoint
All Known Subinterfaces:
ComponentReference, CompositeReference, RuntimeComponentReference
All Known Implementing Classes:
ComponentReferenceImpl, CompositeReferenceImpl, ReferenceImpl, RuntimeComponentReferenceImpl

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.


Method Summary
 java.util.List<ComponentService> getTargets()
          Returns the targets of this reference.
 boolean isPromotionOverride()
          Returns a boolean value, "false" by default, which indicates whether the configuration of this reference is a promotion override for another more deeply nested reference.
 boolean isWiredByImpl()
          Returns a boolean value, "false" by default, which indicates that the implementation wires this reference dynamically.
 void setPromotionOverride(boolean promotionOverride)
          Sets a boolean value, "false" by default, which indicates whether the configuration of this reference is a promotion override for another more deeply nested reference.
 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.Contract
clone, getBinding, getBindings, getCallback, getCallbackBinding, getInterfaceContract, setCallback
 
Methods inherited from interface org.apache.tuscany.sca.assembly.AbstractContract
getInterfaceContract, getName, isCallback, setInterfaceContract, setIsCallback, setName
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Extensible
getExtensions
 
Methods inherited from interface org.apache.tuscany.sca.assembly.OperationsConfigurator
getConfiguredOperations
 
Methods inherited from interface org.apache.tuscany.sca.policy.PolicySetAttachPoint
getApplicablePolicySets, getPolicySets
 
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint
getRequiredIntents, getType, setType
 

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

isPromotionOverride

boolean isPromotionOverride()
Returns a boolean value, "false" by default, which indicates whether the configuration of this reference is a promotion override for another more deeply nested reference.

Returns:
true if the reference is a promotion override

setPromotionOverride

void setPromotionOverride(boolean promotionOverride)
Sets a boolean value, "false" by default, which indicates whether the configuration of this reference is a promotion override for another more deeply nested reference.

Parameters:
promotionOverride - whether the reference is a promotion override

getTargets

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

Returns:
the targets of this reference.