org.apache.felix.ipojo.handler.extender
Class ExtenderModelHandler
java.lang.Object
org.apache.felix.ipojo.Handler
org.apache.felix.ipojo.PrimitiveHandler
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 |
private java.util.List |
m_managers
The extension manager list. |
static java.lang.String |
NAMESPACE
The handler namespace. |
|
Method Summary |
void |
configure(Element elem,
java.util.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 |
NAMESPACE
public static final java.lang.String NAMESPACE
- The handler namespace.
- See Also:
- Constant Field Values
m_managers
private java.util.List m_managers
- The extension manager list.
Immutable once set.
ExtenderModelHandler
public ExtenderModelHandler()
configure
public void configure(Element elem,
java.util.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-2010 The Apache Software Foundation. All Rights Reserved.