|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.assembly.impl.BaseImpl
org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
org.apache.tuscany.sca.assembly.impl.ContractImpl
org.apache.tuscany.sca.assembly.impl.AbstractReferenceImpl
org.apache.tuscany.sca.assembly.impl.ReferenceImpl
org.apache.tuscany.sca.assembly.impl.ComponentReferenceImpl
public class ComponentReferenceImpl
Represents a component reference
| Constructor Summary | |
|---|---|
protected |
ComponentReferenceImpl()
Constructs a new component reference. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of the contract. |
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. |
InterfaceContract |
getInterfaceContract(Binding binding)
Use endpoint information to work out what the interface contract for the binding is. |
Reference |
getReference()
Returns the reference defined by the implementation for this reference. |
boolean |
isAutowire()
|
java.util.List<CompositeReference> |
promotedAs()
|
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 class org.apache.tuscany.sca.assembly.impl.ReferenceImpl |
|---|
getApplicablePolicySets, getBinding, getBindings, getCallback, getCallbackBinding, getPolicySets, getTargets, isPromotionOverride, isWiredByImpl, setCallback, setPolicySets, setPromotionOverride, setWiredByImpl |
| Methods inherited from class org.apache.tuscany.sca.assembly.impl.AbstractReferenceImpl |
|---|
getMultiplicity, setMultiplicity |
| Methods inherited from class org.apache.tuscany.sca.assembly.impl.ContractImpl |
|---|
getConfiguredOperations, getInterfaceContract, getName, getRequiredIntents, getType, isCallback, setConfiguredOperations, setInterfaceContract, setIsCallback, setName, setRequiredIntents, setType |
| 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.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 |
|---|
getBinding, getBindings, getCallback, getCallbackBinding, 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 |
| Constructor Detail |
|---|
protected ComponentReferenceImpl()
| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Contract
clone in interface Contractclone in class ReferenceImpljava.lang.CloneNotSupportedExceptionpublic Reference getReference()
ComponentReference
getReference in interface ComponentReferencepublic void setReference(Reference reference)
ComponentReference
setReference in interface ComponentReferencereference - the implementation referencepublic boolean isAutowire()
public void setAutowire(java.lang.Boolean autowire)
ComponentReference
setAutowire in interface ComponentReferenceautowire - whether component references should be autowiredpublic java.lang.Boolean getAutowire()
ComponentReference
getAutowire in interface ComponentReferencepublic java.util.List<CompositeReference> promotedAs()
public ComponentService getCallbackService()
ComponentReference
getCallbackService in interface ComponentReferencepublic void setCallbackService(ComponentService callbackService)
ComponentReference
setCallbackService in interface ComponentReferencecallbackService - the callback servicepublic java.util.List<Endpoint> getEndpoints()
ComponentReference
getEndpoints in interface ComponentReferencepublic InterfaceContract getInterfaceContract(Binding binding)
getInterfaceContract in interface ContractgetInterfaceContract in class ReferenceImplbinding - the binding for which the interface contract is required
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||