public class ArchitectureHandler extends PrimitiveHandler implements Architecture, InstanceStateListener
HANDLER_TYPE
HANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid
ARCHITECTURE_INSTANCE
Constructor and Description |
---|
ArchitectureHandler() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.felix.ipojo.metadata.Element metadata,
java.util.Dictionary configuration)
Configure the handler.
|
InstanceDescription |
getInstanceDescription()
Get the instance description.
|
void |
start()
Start method.
|
void |
stateChanged(ComponentInstance instance,
int newState)
The instance lifecycle listener callback.
|
void |
stop()
Stop method.
|
attach, getConstructorParameter, getConstructorParameterType, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory
debug, error, error, getDescription, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, stateChanged, warn, warn
public void configure(org.apache.felix.ipojo.metadata.Element metadata, java.util.Dictionary configuration)
configure
in class Handler
metadata
- : the metadata of the componentconfiguration
- : the instance configurationHandler.configure(org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)
public void stop()
stop
in class Handler
Handler.stop()
public void start()
start
in class Handler
Handler.start()
public InstanceDescription getInstanceDescription()
getInstanceDescription
in interface Architecture
Architecture.getInstanceDescription()
public void stateChanged(ComponentInstance instance, int newState)
stateChanged
in interface InstanceStateListener
instance
- the changing instance the instance, meaningless in our case.newState
- the new instance state the new instance state.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.