org.apache.felix.scr.impl.config
Class UnconfiguredComponentHolder

java.lang.Object
  extended by org.apache.felix.scr.impl.config.UnconfiguredComponentHolder
All Implemented Interfaces:
ComponentHolder

public class UnconfiguredComponentHolder
extends Object

The SingletonHolder class is ComponentHolder for a component configured by a singleton configuration or no configuration at all.


Constructor Summary
UnconfiguredComponentHolder(BundleComponentActivator activator, ComponentMetadata metadata)
           
 
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.
protected  ImmediateComponentManager createComponentManager()
           
 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.
protected  String getComponentName()
           
 Component[] getComponents()
          Returns all Component instances held by this holder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnconfiguredComponentHolder

public UnconfiguredComponentHolder(BundleComponentActivator activator,
                                   ComponentMetadata metadata)
Method Detail

configurationDeleted

public void configurationDeleted(String pid)
Description copied from interface: ComponentHolder
The configuration with the given PID has been deleted from the Configuration Admin service.

Parameters:
pid - The PID of the deleted configuration

configurationUpdated

public void configurationUpdated(String pid,
                                 Dictionary props)
Description copied from interface: ComponentHolder
Configure a component with configuration from the given PID.

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

getComponents

public Component[] getComponents()
Description copied from interface: ComponentHolder
Returns all Component instances held by this holder.


enableComponents

public void enableComponents()
Description copied from interface: ComponentHolder
Enables all components of this holder.


disableComponents

public void disableComponents()
Description copied from interface: ComponentHolder
Disables all components of this holder.


disposeComponents

public void disposeComponents(int reason)
Description copied from interface: ComponentHolder
Disposes off all components of this holder.


disposed

public void disposed(ImmediateComponentManager component)
Description copied from interface: ComponentHolder
Informs the holder that the component has been disposed as a result of calling the dispose method.


createComponentManager

protected ImmediateComponentManager createComponentManager()

getActivator

public final BundleComponentActivator getActivator()
Description copied from interface: ComponentHolder
Returns the BundleComponentActivator owning this component holder.

Specified by:
getActivator in interface ComponentHolder

getComponentMetadata

public final ComponentMetadata getComponentMetadata()
Description copied from interface: ComponentHolder
Returns the ComponentMetadata describing and declaring this component.

Specified by:
getComponentMetadata in interface ComponentHolder

getComponentName

protected final String getComponentName()


Copyright © 2011 Apache Software Foundation. All Rights Reserved.