org.apache.tuscany.sca.runtime
Interface RuntimeComponent

All Superinterfaces:
Base, java.lang.Cloneable, Component, Extensible, IntentAttachPoint, PolicySetAttachPoint
All Known Subinterfaces:
ScopedRuntimeComponent
All Known Implementing Classes:
RuntimeComponentImpl

public interface RuntimeComponent
extends Component

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


Method Summary
 void addPolicyProvider(PolicyProvider policyProvider)
          Add a policy provider to the component
 RuntimeComponentContext getComponentContext()
          Get the associated component context
 ImplementationProvider getImplementationProvider()
          Get the implementation-specific configuration for this component
 java.util.List<PolicyProvider> getPolicyProviders()
          Get a list of policy providers configured for this component
 boolean isStarted()
          Tests if the RuntimeComponent is started
 void setComponentContext(RuntimeComponentContext context)
          Set the associated component context
 void setImplementationProvider(ImplementationProvider implementationProvider)
          Set the implementation-specific configuration for this component
 void setStarted(boolean started)
          Sets the RuntimeComponent started state
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Component
clone, getAutowire, getConstrainingType, getImplementation, getName, getProperties, getReferences, getServices, getURI, setAutowire, setConstrainingType, setImplementation, setName, setURI
 
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.policy.PolicySetAttachPoint
getApplicablePolicySets, getPolicySets
 
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint
getRequiredIntents, getType, setType
 

Method Detail

setImplementationProvider

void setImplementationProvider(ImplementationProvider implementationProvider)
Set the implementation-specific configuration for this component

Parameters:
implementationProvider - The object that manages the component implementation

getImplementationProvider

ImplementationProvider getImplementationProvider()
Get the implementation-specific configuration for this component

Returns:
The implementation provider for this component

getComponentContext

RuntimeComponentContext getComponentContext()
Get the associated component context

Returns:

setComponentContext

void setComponentContext(RuntimeComponentContext context)
Set the associated component context

Parameters:
context -

isStarted

boolean isStarted()
Tests if the RuntimeComponent is started

Returns:
true if the RuntimeComponent is started otherwise false

setStarted

void setStarted(boolean started)
Sets the RuntimeComponent started state

Parameters:
started - the state to set

addPolicyProvider

void addPolicyProvider(PolicyProvider policyProvider)
Add a policy provider to the component

Parameters:
policyProvider -

getPolicyProviders

java.util.List<PolicyProvider> getPolicyProviders()
Get a list of policy providers configured for this component

Returns: