Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.component
Interface AtomicComponent

All Superinterfaces:
Component, EventPublisher, Lifecycle, SCAObject
All Known Subinterfaces:
SystemAtomicComponent
All Known Implementing Classes:
AtomicComponentExtension, SystemAtomicComponentExtension

public interface AtomicComponent
extends Component

The runtime instantiation of an SCA atomic, or leaf-type, component

Version:
$Rev: 441893 $ $Date: 2006-09-09 20:41:09 -0700 (Sat, 09 Sep 2006) $

Field Summary
 
Fields inherited from interface org.apache.tuscany.spi.Lifecycle
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STOPPED, STOPPING, UNINITIALIZED
 
Method Summary
 Object createInstance()
          Creates a new implementation instance, generally used as a callback by a ScopeContainer
 void destroy(Object instance)
          Notifies the given instance of a destroy event
 int getInitLevel()
          Returns the initialization level for this component.
 void init(Object instance)
          Notifies the given instance of an initialization event
 boolean isEagerInit()
          Returns whether component instances should be eagerly initialized
 
Methods inherited from interface org.apache.tuscany.spi.component.Component
addInboundWire, addOutboundWire, addOutboundWires, createAsyncTargetInvoker, createTargetInvoker, getInboundWire, getInboundWires, getOutboundWires, getServiceInstance, getServiceInterfaces
 
Methods inherited from interface org.apache.tuscany.spi.component.SCAObject
getExtensions, getName, getParent, getScope, getServiceInstance, isSystem, 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
 

Method Detail

isEagerInit

boolean isEagerInit()
Returns whether component instances should be eagerly initialized


getInitLevel

int getInitLevel()
Returns the initialization level for this component.

Returns:
the initialization level for this component
See Also:
ComponentDefinition.getInitLevel()

init

void init(Object instance)
          throws TargetException
Notifies the given instance of an initialization event

Throws:
TargetException

destroy

void destroy(Object instance)
             throws TargetException
Notifies the given instance of a destroy event

Throws:
TargetException

createInstance

Object createInstance()
                      throws ObjectCreationException
Creates a new implementation instance, generally used as a callback by a ScopeContainer

Throws:
ObjectCreationException

Apache Tuscany SCA Kernel Sub-Project

-