|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Factory
Component Type Factory Service. This service is exposed by a instance manager factory, and allows the dynamic creation of component instance.
Field Summary | |
---|---|
static int |
INVALID
Factory State. |
static int |
VALID
Factory State. |
Method Summary | |
---|---|
void |
addFactoryStateListener(FactoryStateListener listener)
Adds a factory state listener on the current factory. |
ComponentInstance |
createComponentInstance(Dictionary configuration)
Creates an instance manager (i.e. |
ComponentInstance |
createComponentInstance(Dictionary configuration,
ServiceContext serviceContext)
Creates an instance manager (i.e. |
BundleContext |
getBundleContext()
Gets the bundle context of the factory. |
String |
getClassName()
Deprecated. |
ComponentTypeDescription |
getComponentDescription()
Gets the component type description. |
Element |
getDescription()
Gets the component type information containing provided service, configuration properties ... |
List |
getMissingHandlers()
Gets the list of missing handlers. |
String |
getName()
Returns the factory name. |
List |
getRequiredHandlers()
Get the list of required handlers. |
int |
getState()
Returns the state of the factory. |
boolean |
isAcceptable(Dictionary conf)
Checks if the given configuration is acceptable as a configuration of a component instance. |
void |
reconfigure(Dictionary conf)
Reconfigures an instance already created. |
void |
removeFactoryStateListener(FactoryStateListener listener)
Removes the given factory state listener from the listener list. |
Field Detail |
---|
static final int VALID
static final int INVALID
Method Detail |
---|
ComponentInstance createComponentInstance(Dictionary configuration) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
configuration
- the configuration properties for this component.
UnacceptableConfiguration
- if the given configuration is not valid.
MissingHandlerException
- if an handler is missing.
ConfigurationException
- if the instance configuration failed.ComponentInstance createComponentInstance(Dictionary configuration, ServiceContext serviceContext) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
configuration
- the configuration properties for this component.serviceContext
- the service context of the component.
UnacceptableConfiguration
- if the given configuration is not valid.
MissingHandlerException
- if an handler is missing.
ConfigurationException
- if the instance configuration failed.Element getDescription()
ComponentTypeDescription getComponentDescription()
boolean isAcceptable(Dictionary conf)
conf
- the configuration to test
true
if the configuration is acceptableString getName()
void reconfigure(Dictionary conf) throws UnacceptableConfiguration, MissingHandlerException
conf
- the configuration to reconfigure the instance.
UnacceptableConfiguration
- if the given configuration is not consistent for the targeted instance.
MissingHandlerException
- if an handler is missing.void addFactoryStateListener(FactoryStateListener listener)
listener
- the listener to addvoid removeFactoryStateListener(FactoryStateListener listener)
listener
- the listener to removeList getMissingHandlers()
List getRequiredHandlers()
String getClassName()
int getState()
BundleContext getBundleContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |