org.apache.tuscany.sca.assembly
Interface ComponentReference

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

public interface ComponentReference
extends Reference

An instance of a reference associated with a particular component.


Method Summary
 java.lang.Boolean getAutowire()
          Return the Boolean value of autowire
 ComponentService getCallbackService()
          Returns the callback service created internally as a target endpoint for callbacks to this reference.
 java.util.List<Endpoint> getEndpoints()
          Returns the endpoints implied by this reference.
 Reference getReference()
          Returns the reference defined by the implementation for this reference.
 void setAutowire(java.lang.Boolean autowire)
          Sets whether component references should be autowired.
 void setCallbackService(ComponentService callbackService)
          Sets the callback service created internally as a target endpoint for callbacks to this reference.
 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, isPromotionOverride, isWiredByImpl, setPromotionOverride, setWiredByImpl
 
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

getReference

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

Returns:
the implementation reference

setReference

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

Parameters:
reference - the implementation reference

getAutowire

java.lang.Boolean getAutowire()
Return the Boolean value of autowire

Returns:
null/TRUE/FALSE

setAutowire

void setAutowire(java.lang.Boolean autowire)
Sets whether component references should be autowired.

Parameters:
autowire - whether component references should be autowired

getCallbackService

ComponentService getCallbackService()
Returns the callback service created internally as a target endpoint for callbacks to this reference.

Returns:
the callback service

setCallbackService

void setCallbackService(ComponentService callbackService)
Sets the callback service created internally as a target endpoint for callbacks to this reference.

Parameters:
callbackService - the callback service

getEndpoints

java.util.List<Endpoint> getEndpoints()
Returns the endpoints implied by this reference.

Returns:
the endpoints implied by this reference