|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentInstance
The component instance class manages one instance of a component type.
Field Summary | |
---|---|
static int |
DISPOSED
Component Instance State : DISPOSED. |
static int |
INVALID
Component Instance State : INVALID. |
static int |
STOPPED
Component Instance State : STOPPED. |
static int |
VALID
Component Instance State : VALID. |
Method Summary | |
---|---|
void |
addInstanceStateListener(InstanceStateListener listener)
Add an instance state listener on the current instance. |
void |
dispose()
Dispose the component instance. |
org.osgi.framework.BundleContext |
getContext()
Return the bundle context of this instance. |
ComponentFactory |
getFactory()
Return the factory which create this instance. |
InstanceDescription |
getInstanceDescription()
Return the instance description. |
java.lang.String |
getInstanceName()
Return the name of the instance. |
int |
getState()
Return the actual state of the instance. |
boolean |
isStarted()
Check if the instance is started. |
void |
reconfigure(java.util.Dictionary configuration)
Re-configure an instance. |
void |
removeInstanceStateListener(InstanceStateListener listener)
Remove an instance state listener on the current instance. |
void |
start()
Start the component instance. |
void |
stop()
Stop the component instance. |
Field Detail |
---|
static final int DISPOSED
static final int STOPPED
static final int INVALID
static final int VALID
Method Detail |
---|
void start()
void stop()
void dispose()
int getState()
InstanceDescription getInstanceDescription()
ComponentFactory getFactory()
org.osgi.framework.BundleContext getContext()
java.lang.String getInstanceName()
boolean isStarted()
void reconfigure(java.util.Dictionary configuration)
configuration
- : the new configuration.void addInstanceStateListener(InstanceStateListener listener)
listener
- : the listener to add.void removeInstanceStateListener(InstanceStateListener listener)
listener
- : the listener to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |