org.apache.felix.ipojo.handler.extender
Class ExtenderModelHandler

java.lang.Object
  extended by org.apache.felix.ipojo.Handler
      extended by org.apache.felix.ipojo.PrimitiveHandler
          extended by org.apache.felix.ipojo.handler.extender.ExtenderModelHandler
All Implemented Interfaces:
org.apache.felix.ipojo.FieldInterceptor, org.apache.felix.ipojo.MethodInterceptor

public class ExtenderModelHandler
extends org.apache.felix.ipojo.PrimitiveHandler

Handler automating extender pattern. The component using this handler is notified when an handler with a special manifest extension is detected, the component is notified. When a managed handler leaves, the component is also notified.

Author:
Felix Project Team

Field Summary
static java.lang.String NAMESPACE
          Handler namespace.
 
Fields inherited from class org.apache.felix.ipojo.PrimitiveHandler
HANDLER_TYPE
 
Fields inherited from class org.apache.felix.ipojo.Handler
HANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid
 
Constructor Summary
ExtenderModelHandler()
           
 
Method Summary
 void configure(org.apache.felix.ipojo.metadata.Element elem, java.util.Dictionary dict)
          Configure method.
 void start()
          Start the handler.
 void stop()
          Stop the handler.
 
Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler
attach, getFactory, getHandler, getInstanceManager, getLogger, getMetadata, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory
 
Methods inherited from class org.apache.felix.ipojo.Handler
error, error, getDescription, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, stateChanged, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final java.lang.String NAMESPACE
Handler namespace.

See Also:
Constant Field Values
Constructor Detail

ExtenderModelHandler

public ExtenderModelHandler()
Method Detail

configure

public void configure(org.apache.felix.ipojo.metadata.Element elem,
                      java.util.Dictionary dict)
               throws org.apache.felix.ipojo.ConfigurationException
Configure method.

Specified by:
configure in class org.apache.felix.ipojo.Handler
Parameters:
elem - : component type element.
dict - : instance configuration.
Throws:
org.apache.felix.ipojo.ConfigurationException - : the configuration is not valid.
See Also:
Handler.configure(org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)

start

public void start()
Start the handler.

Specified by:
start in class org.apache.felix.ipojo.Handler
See Also:
Handler.start()

stop

public void stop()
Stop the handler.

Specified by:
stop in class org.apache.felix.ipojo.Handler
See Also:
Handler.stop()