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:
FieldInterceptor, MethodInterceptor

public class ExtenderModelHandler
extends 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 String NAMESPACE
          The 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(Element elem, Dictionary dict)
          Configures the handler.
 void start()
          Starts the handler.
 void stop()
          Stops the handler.
 
Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler
attach, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory
 
Methods inherited from class org.apache.felix.ipojo.Handler
debug, 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 String NAMESPACE
The handler namespace.

See Also:
Constant Field Values
Constructor Detail

ExtenderModelHandler

public ExtenderModelHandler()
Method Detail

configure

public void configure(Element elem,
                      Dictionary dict)
               throws ConfigurationException
Configures the handler.

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

start

public void start()
Starts the handler.

Specified by:
start in class Handler
See Also:
Handler.start()

stop

public void stop()
Stops the handler.

Specified by:
stop in class Handler
See Also:
Handler.stop()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.