|
|||||||||
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
org.apache.tuscany.sca.core.assembly.RuntimeComponentReferenceImpl
public class RuntimeComponentReferenceImpl
Implementation of a Component Reference.
Constructor Summary | |
---|---|
RuntimeComponentReferenceImpl()
|
Method Summary | |
---|---|
void |
addPolicyProvider(Binding binding,
PolicyProvider policyProvider)
Add a policy provider for the given binding to the reference |
java.lang.Object |
clone()
Returns a clone of the contract. |
ReferenceBindingProvider |
getBindingProvider(Binding binding)
Returns the reference binding provider associated with this component reference and the given binding. |
RuntimeComponent |
getComponent()
|
EndpointResolver |
getEndpointResolver(Endpoint endpoint)
Returns the endpoint resolver associated with this component reference and the given endpoint. |
Invoker |
getInvoker(Binding binding,
Operation operation)
Get the invoker for the given binding and operation |
java.util.List<PolicyProvider> |
getPolicyProviders(Binding binding)
Get a list of policy providers for the given binding |
RuntimeWire |
getRuntimeWire(Binding binding)
Get the runtime wire for the given binding |
java.util.List<RuntimeWire> |
getRuntimeWires()
Get a list of runtime wires to the reference |
void |
setBindingProvider(Binding binding,
ReferenceBindingProvider bindingProvider)
Sets the reference binding provider associated with this component reference and the given binding. |
void |
setComponent(RuntimeComponent component)
Set the owning component |
void |
setEndpointResolver(Endpoint endpoint,
EndpointResolver endpointResolver)
Sets the endpoint resolver associated with this component reference and the given endpoint. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.tuscany.sca.assembly.impl.ComponentReferenceImpl |
---|
getAutowire, getCallbackService, getEndpoints, getInterfaceContract, getReference, isAutowire, promotedAs, setAutowire, setCallbackService, setReference |
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, wait, wait, wait |
Methods inherited from interface org.apache.tuscany.sca.assembly.ComponentReference |
---|
getAutowire, getCallbackService, getEndpoints, getReference, setAutowire, setCallbackService, setReference |
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, 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 |
Constructor Detail |
---|
public RuntimeComponentReferenceImpl()
Method Detail |
---|
public java.util.List<RuntimeWire> getRuntimeWires()
RuntimeComponentReference
getRuntimeWires
in interface RuntimeComponentReference
public RuntimeWire getRuntimeWire(Binding binding)
RuntimeComponentReference
getRuntimeWire
in interface RuntimeComponentReference
binding
- The assembly model binding
public ReferenceBindingProvider getBindingProvider(Binding binding)
RuntimeComponentReference
getBindingProvider
in interface RuntimeComponentReference
binding
- The assembly model binding
public void setBindingProvider(Binding binding, ReferenceBindingProvider bindingProvider)
RuntimeComponentReference
setBindingProvider
in interface RuntimeComponentReference
binding
- The assembly model bindingbindingProvider
- The runtime reference binding providerpublic EndpointResolver getEndpointResolver(Endpoint endpoint)
RuntimeComponentReference
getEndpointResolver
in interface RuntimeComponentReference
public void setEndpointResolver(Endpoint endpoint, EndpointResolver endpointResolver)
RuntimeComponentReference
setEndpointResolver
in interface RuntimeComponentReference
public Invoker getInvoker(Binding binding, Operation operation)
RuntimeComponentReference
getInvoker
in interface RuntimeComponentReference
binding
- The assembly model bindingoperation
- The assembly model operation
public RuntimeComponent getComponent()
public void setComponent(RuntimeComponent component)
RuntimeComponentReference
setComponent
in interface RuntimeComponentReference
component
- the component to setpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
Contract
clone
in interface Contract
clone
in class ComponentReferenceImpl
java.lang.CloneNotSupportedException
ComponentReferenceImpl.clone()
public void addPolicyProvider(Binding binding, PolicyProvider policyProvider)
RuntimeComponentReference
addPolicyProvider
in interface RuntimeComponentReference
binding
- The assembly model bindingpolicyProvider
- The policy handlerpublic java.util.List<PolicyProvider> getPolicyProviders(Binding binding)
RuntimeComponentReference
getPolicyProviders
in interface RuntimeComponentReference
binding
- The assembly model binding
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |