public class ArchitectureHandler extends PrimitiveHandler implements Architecture, InstanceStateListener
Modifier and Type | Field and Description |
---|---|
private String |
m_name
Name of the component.
|
private ServiceRegistration |
m_serviceRegistration
The Architecture service registration.
|
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(Element metadata,
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
private ServiceRegistration m_serviceRegistration
public ArchitectureHandler()
public void configure(Element metadata, 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 © 2014. All rights reserved.