org.apache.tuscany.spi.extension
Class SystemAtomicComponentExtension
java.lang.Object
org.apache.tuscany.spi.AbstractLifecycle
org.apache.tuscany.spi.component.AbstractSCAObject
org.apache.tuscany.spi.extension.AtomicComponentExtension
org.apache.tuscany.spi.extension.SystemAtomicComponentExtension
- All Implemented Interfaces:
- AtomicComponent, Component, SCAObject, SystemAtomicComponent, EventPublisher, Lifecycle
public abstract class SystemAtomicComponentExtension
- extends AtomicComponentExtension
- implements SystemAtomicComponent
- Version:
- $Rev: 451895 $ $Date: 2006-10-01 23:58:18 -0700 (Sun, 01 Oct 2006) $
Methods inherited from class org.apache.tuscany.spi.extension.AtomicComponentExtension |
addInboundWire, addOutboundWire, addOutboundWires, createAsyncTargetInvoker, destroy, getInboundWire, getInboundWires, getInitLevel, getOutboundWires, getScope, init, isEagerInit, onReferenceWire, onReferenceWires, onServiceWire, start |
interfazes
protected List<Class<?>> interfazes
SystemAtomicComponentExtension
public SystemAtomicComponentExtension(String name,
CompositeComponent parent,
ScopeContainer scopeContainer,
int initLevel)
SystemAtomicComponentExtension
public SystemAtomicComponentExtension(String name,
List<Class<?>> serviceInterfaces,
CompositeComponent parent,
ScopeContainer scopeContainer,
int initLevel)
getServiceInstance
public Object getServiceInstance()
throws TargetException
- Description copied from interface:
SCAObject
- Returns an instance associated with the default service
- Specified by:
getServiceInstance
in interface SCAObject
- Throws:
TargetException
- if an error occurs retrieving the instance
getServiceInstance
public Object getServiceInstance(String name)
throws TargetException
- Description copied from interface:
Component
- Returns a service associated with the given name
- Specified by:
getServiceInstance
in interface Component
- Throws:
TargetException
- if an error occurs retrieving the service instance
getServiceInterfaces
public List<Class<?>> getServiceInterfaces()
- Description copied from interface:
Component
- Returns the service interfaces implemented by the component
- Specified by:
getServiceInterfaces
in interface Component
createTargetInvoker
public TargetInvoker createTargetInvoker(String targetName,
Operation operation)
- Description copied from interface:
Component
- Callback to create a
TargetInvoker
which dispatches to a service offered by
the component
- Specified by:
createTargetInvoker
in interface Component
operation
- the operation to invoke
isSystem
public boolean isSystem()
- Description copied from interface:
SCAObject
- Returns true if the artifact is a system artifact
- Specified by:
isSystem
in interface SCAObject
- Overrides:
isSystem
in class AbstractSCAObject
- Returns:
- true if the artifact is a system artifact
-