|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentHolder
The ComponentHolder
interface provides the API for supporting
component instances configured through either singleton configurations (or
no configuration at all) and factory configurations.
Instances of this interface are managed by the ConfigurationSupport
class on behalf of the
BundleComponentActivator
and the
ComponentRegistry
.
Method Summary | |
---|---|
void |
configurationDeleted(String pid)
The configuration with the given PID has been deleted from the Configuration Admin service. |
void |
configurationUpdated(String pid,
Dictionary props)
Configure a component with configuration from the given PID. |
void |
disableComponents()
Disables all components of this holder. |
void |
disposeComponents(int reason)
Disposes off all components of this holder. |
void |
disposed(ImmediateComponentManager component)
Informs the holder that the component has been disposed as a result of calling the dispose method. |
void |
enableComponents()
Enables all components of this holder. |
BundleComponentActivator |
getActivator()
Returns the BundleComponentActivator owning this component
holder. |
ComponentMetadata |
getComponentMetadata()
Returns the ComponentMetadata describing and declaring this
component. |
Component[] |
getComponents()
Returns all Component instances held by this holder. |
Method Detail |
---|
BundleComponentActivator getActivator()
BundleComponentActivator
owning this component
holder.
ComponentMetadata getComponentMetadata()
ComponentMetadata
describing and declaring this
component.
void configurationDeleted(String pid)
pid
- The PID of the deleted configurationvoid configurationUpdated(String pid, Dictionary props)
pid
- The PID of the configuration used to configure the componentComponent[] getComponents()
Component
instances held by this holder.
void enableComponents()
void disableComponents()
void disposeComponents(int reason)
reason
- void disposed(ImmediateComponentManager component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |