org.apache.tuscany.sca.runtime
Interface RuntimeComponentReference

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

public interface RuntimeComponentReference
extends ComponentReference

The runtime component reference. Provides the bridge between the assembly model representation of a component reference and its runtime realization


Method Summary
 void addPolicyProvider(Binding binding, PolicyProvider policyProvider)
          Add a policy provider for the given binding to the reference
 ReferenceBindingProvider getBindingProvider(Binding binding)
          Returns the reference binding provider associated with this component reference and the given binding.
 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.
 
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
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

getRuntimeWires

java.util.List<RuntimeWire> getRuntimeWires()
Get a list of runtime wires to the reference

Returns:
The list of wires

getRuntimeWire

RuntimeWire getRuntimeWire(Binding binding)
Get the runtime wire for the given binding

Parameters:
binding - The assembly model binding
Returns:
The runtime wire

getBindingProvider

ReferenceBindingProvider getBindingProvider(Binding binding)
Returns the reference binding provider associated with this component reference and the given binding.

Parameters:
binding - The assembly model binding
Returns:
The runtime reference binding provider

setBindingProvider

void setBindingProvider(Binding binding,
                        ReferenceBindingProvider bindingProvider)
Sets the reference binding provider associated with this component reference and the given binding.

Parameters:
binding - The assembly model binding
bindingProvider - The runtime reference binding provider

getEndpointResolver

EndpointResolver getEndpointResolver(Endpoint endpoint)
Returns the endpoint resolver associated with this component reference and the given endpoint.

Parameters:
endpont - The assembly model endpoint
Returns:
The enpoint resolver

setEndpointResolver

void setEndpointResolver(Endpoint endpoint,
                         EndpointResolver endpointResolver)
Sets the endpoint resolver associated with this component reference and the given endpoint.

Parameters:
binding - The assembly model binding
bindingProvider - The runtime reference binding provider

addPolicyProvider

void addPolicyProvider(Binding binding,
                       PolicyProvider policyProvider)
Add a policy provider for the given binding to the reference

Parameters:
binding - The assembly model binding
policyProvider - The policy handler

getPolicyProviders

java.util.List<PolicyProvider> getPolicyProviders(Binding binding)
Get a list of policy providers for the given binding

Parameters:
binding - The assembly model binding
Returns:
A list of policy providers for the given binding

getInvoker

Invoker getInvoker(Binding binding,
                   Operation operation)
Get the invoker for the given binding and operation

Parameters:
binding - The assembly model binding
operation - The assembly model operation
Returns:
The runtime Invoker

setComponent

void setComponent(RuntimeComponent component)
Set the owning component

Parameters:
component -