public interface ComponentInstance
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
addInstanceStateListener(InstanceStateListener listener)
Adds an instance state listener on the current instance.
|
void |
dispose()
Disposes the component instance.
|
org.osgi.framework.BundleContext |
getContext()
Returns the bundle context of this instance.
|
ComponentFactory |
getFactory()
Returns the factory who created this instance.
|
InstanceDescription |
getInstanceDescription()
Returns the instance description.
|
java.lang.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(java.util.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.
|
static final int DISPOSED
static final int STOPPED
static final int INVALID
static final int VALID
void start()
void stop()
void dispose()
int getState()
InstanceDescription getInstanceDescription()
ComponentFactory getFactory()
org.osgi.framework.BundleContext getContext()
java.lang.String getInstanceName()
boolean isStarted()
true
if getState()
returns INVALID
or VALID
.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.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.