|
||||||||||
| 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(java.lang.String handler)
Gets a handler description by specifying the handler qualified name. |
HandlerDescription[] |
getHandlers()
Gets the plugged handler list. |
java.lang.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. |
private void |
waitForStability()
Waits for state stability before returning results. |
| 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 java.lang.String getName()
public ComponentTypeDescription getComponentDescription()
public HandlerDescription[] getHandlers()
public void addHandler(HandlerDescription desc)
desc - : the handler description to addpublic HandlerDescription getHandlerDescription(java.lang.String handler)
handler - the handler name
null if not foundpublic int getState()
public long getBundleId()
public Element getDescription()
private void waitForStability()
public void stateChanged(ComponentInstance instance,
int newState)
stateChanged in interface InstanceStateListenerinstance - 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 | |||||||||