Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.extension
Class SystemAtomicComponentExtension

java.lang.Object
  extended by org.apache.tuscany.spi.AbstractLifecycle
      extended by org.apache.tuscany.spi.component.AbstractSCAObject
          extended by org.apache.tuscany.spi.extension.AtomicComponentExtension
              extended by 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) $

Field Summary
protected  List<Class<?>> interfazes
           
 
Fields inherited from class org.apache.tuscany.spi.extension.AtomicComponentExtension
referenceWires, scope, scopeContainer, serviceWires, wireService, workContext, workScheduler
 
Fields inherited from class org.apache.tuscany.spi.component.AbstractSCAObject
listeners, parent, TRUE_FILTER
 
Fields inherited from class org.apache.tuscany.spi.AbstractLifecycle
lifecycleState
 
Fields inherited from interface org.apache.tuscany.spi.Lifecycle
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
SystemAtomicComponentExtension(String name, CompositeComponent parent, ScopeContainer scopeContainer, int initLevel)
           
SystemAtomicComponentExtension(String name, List<Class<?>> serviceInterfaces, CompositeComponent parent, ScopeContainer scopeContainer, int initLevel)
           
 
Method Summary
 TargetInvoker createTargetInvoker(String targetName, Operation operation)
          Callback to create a TargetInvoker which dispatches to a service offered by the component
 Object getServiceInstance()
          Returns an instance associated with the default service
 Object getServiceInstance(String name)
          Returns a service associated with the given name
 List<Class<?>> getServiceInterfaces()
          Returns the service interfaces implemented by the component
 boolean isSystem()
          Returns true if the artifact is a system artifact
 
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
 
Methods inherited from class org.apache.tuscany.spi.component.AbstractSCAObject
addListener, addListener, getExtensions, getListeners, getName, getParent, prepare, publish, removeListener, toString
 
Methods inherited from class org.apache.tuscany.spi.AbstractLifecycle
getLifecycleState, setLifecycleState, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.spi.component.SystemAtomicComponent
getTargetInstance
 
Methods inherited from interface org.apache.tuscany.spi.component.AtomicComponent
createInstance, destroy, getInitLevel, init, isEagerInit
 
Methods inherited from interface org.apache.tuscany.spi.component.Component
addInboundWire, addOutboundWire, addOutboundWires, createAsyncTargetInvoker, getInboundWire, getInboundWires, getOutboundWires
 
Methods inherited from interface org.apache.tuscany.spi.component.SCAObject
getExtensions, getName, getParent, getScope, prepare
 
Methods inherited from interface org.apache.tuscany.spi.event.EventPublisher
addListener, addListener, publish, removeListener
 
Methods inherited from interface org.apache.tuscany.spi.Lifecycle
getLifecycleState, start, stop
 

Field Detail

interfazes

protected List<Class<?>> interfazes
Constructor Detail

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)
Method Detail

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

Apache Tuscany SCA Kernel Sub-Project

-