|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.architecture.InstanceDescription
public class InstanceDescription
Instance Description.
Field Summary | |
---|---|
protected HandlerDescription[] |
m_handlers
The list of handlers plugged on the component instance. |
protected ComponentInstance |
m_instance
The Underlying component instance. |
protected ComponentTypeDescription |
m_type
Component Type of the instance. |
Constructor Summary | |
---|---|
InstanceDescription(ComponentTypeDescription desc,
ComponentInstance ci)
Creates the instance description. |
Method Summary | |
---|---|
void |
addHandler(HandlerDescription desc)
Adds an handler description to the list. |
long |
getBundleId()
Gets the bundle id of the bundle containing the component type of the instance. |
ComponentTypeDescription |
getComponentDescription()
Gets the component type description of the described instance. |
Element |
getDescription()
Gets the instance description. |
HandlerDescription |
getHandlerDescription(String handler)
Gets a handler description by specifying the handler qualified name. |
HandlerDescription[] |
getHandlers()
Gets the plugged handler list. |
String |
getName()
Gets the instance name. |
int |
getState()
Gets the state of the described instance. |
void |
stateChanged(ComponentInstance instance,
int newState)
The underlying instance state changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected HandlerDescription[] m_handlers
protected ComponentInstance m_instance
protected ComponentTypeDescription m_type
Constructor Detail |
---|
public InstanceDescription(ComponentTypeDescription desc, ComponentInstance ci)
ci
- the state of the instance.desc
- the component type description of this instance.Method Detail |
---|
public String getName()
public ComponentTypeDescription getComponentDescription()
public HandlerDescription[] getHandlers()
public void addHandler(HandlerDescription desc)
desc
- : the handler description to addpublic HandlerDescription getHandlerDescription(String handler)
handler
- the handler name
null
if not foundpublic int getState()
public long getBundleId()
public Element getDescription()
public void stateChanged(ComponentInstance instance, int newState)
stateChanged
in interface InstanceStateListener
instance
- the instancenewState
- the new stateInstanceStateListener.stateChanged(org.apache.felix.ipojo.ComponentInstance, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |