|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentInstance
This class defines the iPOJO's component instance concept.
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)
Adds an instance state listener on the current instance. |
void |
dispose()
Disposes the component instance. |
BundleContext |
getContext()
Returns the bundle context of this instance. |
ComponentFactory |
getFactory()
Returns the factory who created this instance. |
InstanceDescription |
getInstanceDescription()
Returns the instance description. |
String |
getInstanceName()
Returns the name of the instance. |
int |
getState()
Returns the actual state of the instance. |
boolean |
isStarted()
Checks if the instance is started. |
void |
reconfigure(Dictionary configuration)
Re-configures an instance. |
void |
removeInstanceStateListener(InstanceStateListener listener)
Removes an instance state listener on the current instance. |
void |
start()
Starts the component instance. |
void |
stop()
Stops 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()
BundleContext getContext()
String getInstanceName()
boolean isStarted()
true
if getState()
returns INVALID
or VALID
.void reconfigure(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 |