2016/05/28 - Apache Tuscany has been retired.

For more information, please explore the Attic.



org.apache.tuscany.sca.runtime
Interface RuntimeComponentService

All Superinterfaces:
AbstractContract, AbstractService, Base, java.lang.Cloneable, ComponentService, Contract, Extensible, IntentAttachPoint, OperationsConfigurator, PolicySetAttachPoint, Service
All Known Implementing Classes:
RuntimeComponentServiceImpl

public interface RuntimeComponentService
extends ComponentService

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


Method Summary
 void addPolicyProvider(Binding binding, PolicyProvider policyProvider)
          Add a policy provider for the given binding to the service
 ServiceBindingProvider getBindingProvider(Binding binding)
          Returns the service binding provider associated with this component service and the given binding.
 java.util.List<RuntimeWire> getCallbackWires()
          Get the callback wires associated with this service
 InvocationChain getInvocationChain(Binding binding, InterfaceContract interfaceContract, Operation operation)
          Get the invocation chain for the given binding and operation
 InvocationChain getInvocationChain(Binding binding, Operation operation)
          Get the invocation chain for the given binding and operation
 Invoker getInvoker(Binding binding, InterfaceContract interfaceContract, Operation operation)
          Get the invoker for the given binding and operation
 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
 RuntimeWire getRuntimeWire(Binding binding, InterfaceContract interfaceContract)
          Returns the service binding provider associated with this component service and the given binding.
 java.util.List<RuntimeWire> getRuntimeWires()
          Get a list of runtime wires to the service
 void setBindingProvider(Binding binding, ServiceBindingProvider bindingProvider)
          Sets the service binding provider associated with this component service and the given binding.
 
Methods inherited from interface org.apache.tuscany.sca.assembly.ComponentService
getCallbackReference, getService, setCallbackReference, setService
 
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 service

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

getCallbackWires

java.util.List<RuntimeWire> getCallbackWires()
Get the callback wires associated with this service

Returns:
The list of runtime callback wires

getBindingProvider

ServiceBindingProvider getBindingProvider(Binding binding)
Returns the service binding provider associated with this component service and the given binding.

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

getRuntimeWire

RuntimeWire getRuntimeWire(Binding binding,
                           InterfaceContract interfaceContract)
Returns the service binding provider associated with this component service and the given binding.

Parameters:
binding -
interfaceContract -
Returns:

setBindingProvider

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

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

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

getInvoker

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

Parameters:
binding - The assembly model binding
interfaceContract - the client interface contract
operation - The assembly model operation
Returns:
The runtime invoker

getInvocationChain

InvocationChain getInvocationChain(Binding binding,
                                   Operation operation)
Get the invocation chain for the given binding and operation

Parameters:
binding - The assembly model binding
operation - The assembly model operation
Returns:
The runtime invocation chain

getInvocationChain

InvocationChain getInvocationChain(Binding binding,
                                   InterfaceContract interfaceContract,
                                   Operation operation)
Get the invocation chain for the given binding and operation

Parameters:
binding - The assembly model binding
operation - The assembly model operation
interfaceContract - the client interface contract
Returns:
The runtime invocation chain

addPolicyProvider

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

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