org.apache.felix.scr.impl.config
Interface ComponentHolder

All Known Implementing Classes:
ComponentFactoryImpl, ConfiguredComponentHolder, UnconfiguredComponentHolder

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

getActivator

BundleComponentActivator getActivator()
Returns the BundleComponentActivator owning this component holder.


getComponentMetadata

ComponentMetadata getComponentMetadata()
Returns the ComponentMetadata describing and declaring this component.


configurationDeleted

void configurationDeleted(String pid)
The configuration with the given PID has been deleted from the Configuration Admin service.

Parameters:
pid - The PID of the deleted configuration

configurationUpdated

void configurationUpdated(String pid,
                          Dictionary props)
Configure a component with configuration from the given PID.

Parameters:
pid - The PID of the configuration used to configure the component

getComponents

Component[] getComponents()
Returns all Component instances held by this holder.


enableComponents

void enableComponents()
Enables all components of this holder.


disableComponents

void disableComponents()
Disables all components of this holder.


disposeComponents

void disposeComponents(int reason)
Disposes off all components of this holder.

Parameters:
reason -

disposed

void disposed(ImmediateComponentManager component)
Informs the holder that the component has been disposed as a result of calling the dispose method.



Copyright © 2011 Apache Software Foundation. All Rights Reserved.