org.apache.tuscany.sca.assembly
Interface ComponentReference

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

public interface ComponentReference
extends Reference

An instance of a reference associated with a particular component.

Version:
$Rev: 538463 $ $Date: 2007-05-16 08:55:58 +0100 (Wed, 16 May 2007) $

Method Summary
 java.lang.Object clone()
          Clone the component reference.
 Reference getReference()
          Returns the reference defined by the implementation for this reference.
 boolean isAutowire()
          Returns true if the reference should be autowired.
 void setAutowire(boolean autowire)
          Sets whether the reference should be autowired.
 void setReference(Reference reference)
          Sets the reference defined by the implementation for this reference.
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Reference
getTargets, isWiredByImpl, setWiredByImpl
 
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

getReference

Reference getReference()
Returns the reference defined by the implementation for this reference.

Returns:

setReference

void setReference(Reference reference)
Sets the reference defined by the implementation for this reference.

Parameters:
reference -

isAutowire

boolean isAutowire()
Returns true if the reference should be autowired.

Returns:
whether the reference should be autowired.

setAutowire

void setAutowire(boolean autowire)
Sets whether the reference should be autowired.

Parameters:
autowire - whether the reference should be autowired

clone

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone the component reference.

Specified by:
clone in interface Reference
Returns:
a clone of the component reference
Throws:
java.lang.CloneNotSupportedException