|
|||||||||
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
public class ReferenceImpl
Represents a reference.
Constructor Summary | |
---|---|
protected |
ReferenceImpl()
Constructs a new reference. |
Method Summary | ||
---|---|---|
java.lang.Object |
clone()
Returns a clone of the contract. |
|
java.util.List<PolicySet> |
getApplicablePolicySets()
Returns a list of policy sets defined in the domain, that are applicable to this PolicySetAttachPoint. |
|
|
getBinding(java.lang.Class<B> bindingClass)
Returns a binding of the specified type or null if there is no such binding configured on this contract. |
|
java.util.List<Binding> |
getBindings()
Returns the bindings supported by this contract. |
|
Callback |
getCallback()
Returns a callback definition of the bindings to use for callbacks. |
|
|
getCallbackBinding(java.lang.Class<B> bindingClass)
Returns a callback binding of the specified type or null if there is no such callback binding configured on this contract. |
|
InterfaceContract |
getInterfaceContract(Binding binding)
By default return the interface contract for the reference |
|
java.util.List<PolicySet> |
getPolicySets()
Returns a list of policy sets. |
|
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 |
setCallback(Callback callback)
Sets a callback definition of the bindings to use for callbacks |
|
void |
setPolicySets(java.util.List<PolicySet> policySets)
|
|
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 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.AbstractReference |
---|
getMultiplicity, setMultiplicity |
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.IntentAttachPoint |
---|
getRequiredIntents, getType, setType |
Constructor Detail |
---|
protected ReferenceImpl()
Method Detail |
---|
public java.util.List<PolicySet> getApplicablePolicySets()
PolicySetAttachPoint
getApplicablePolicySets
in interface PolicySetAttachPoint
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Contract
clone
in interface Contract
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.util.List<Binding> getBindings()
Contract
getBindings
in interface Contract
public <B> B getBinding(java.lang.Class<B> bindingClass)
Contract
getBinding
in interface Contract
B
- the binding typebindingClass
- the binding type class
public <B> B getCallbackBinding(java.lang.Class<B> bindingClass)
Contract
getCallbackBinding
in interface Contract
B
- the callback binding typebindingClass
- the callback binding type class
public boolean isWiredByImpl()
Reference
isWiredByImpl
in interface Reference
public void setWiredByImpl(boolean wiredByImpl)
Reference
setWiredByImpl
in interface Reference
wiredByImpl
- whether the implementation wires this reference
dynamicallypublic boolean isPromotionOverride()
Reference
isPromotionOverride
in interface Reference
public void setPromotionOverride(boolean promotionOverride)
Reference
setPromotionOverride
in interface Reference
promotionOverride
- whether the reference is a promotion overridepublic java.util.List<PolicySet> getPolicySets()
PolicySetAttachPoint
getPolicySets
in interface PolicySetAttachPoint
public java.util.List<ComponentService> getTargets()
Reference
getTargets
in interface Reference
public Callback getCallback()
Contract
getCallback
in interface Contract
public void setCallback(Callback callback)
Contract
setCallback
in interface Contract
callback
- a definition of the bindings to use for callbackspublic void setPolicySets(java.util.List<PolicySet> policySets)
public InterfaceContract getInterfaceContract(Binding binding)
getInterfaceContract
in interface Contract
binding
- 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 |