org.apache.felix.ipojo.composite
Class CompositeHandler
java.lang.Object
org.apache.felix.ipojo.Handler
org.apache.felix.ipojo.composite.CompositeHandler
- Direct Known Subclasses:
- ArchitectureHandler, InstanceHandler, ProvidedServiceHandler, ServiceDependencyHandler
public abstract class CompositeHandler
- extends org.apache.felix.ipojo.Handler
Composite Handler Abstract Class. An composite handler need implements these
method to be notified of lifecycle change...
- Author:
- Felix Project Team
Field Summary |
static java.lang.String |
HANDLER_TYPE
Composite 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 |
Method Summary |
protected void |
attach(org.apache.felix.ipojo.ComponentInstance instance)
Set the manager. |
CompositeManager |
getCompositeManager()
|
org.apache.felix.ipojo.Handler |
getHandler(java.lang.String name)
Get a plugged handler of the same container. |
org.apache.felix.ipojo.util.Logger |
getLogger()
|
void |
setFactory(org.apache.felix.ipojo.Factory factory)
|
Methods inherited from class org.apache.felix.ipojo.Handler |
configure, error, error, getDescription, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, start, stateChanged, stop, warn, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HANDLER_TYPE
public static final java.lang.String HANDLER_TYPE
- Composite Handler type.
- See Also:
- Constant Field Values
CompositeHandler
public CompositeHandler()
attach
protected final void attach(org.apache.felix.ipojo.ComponentInstance instance)
- Set the manager.
This method me be called only once time.
- Specified by:
attach
in class org.apache.felix.ipojo.Handler
- Parameters:
instance
- : the composite manager.
setFactory
public final void setFactory(org.apache.felix.ipojo.Factory factory)
- Specified by:
setFactory
in class org.apache.felix.ipojo.Handler
getLogger
public final org.apache.felix.ipojo.util.Logger getLogger()
- Specified by:
getLogger
in class org.apache.felix.ipojo.Handler
getCompositeManager
public final CompositeManager getCompositeManager()
getHandler
public final org.apache.felix.ipojo.Handler getHandler(java.lang.String name)
- Get a plugged handler of the same container.
This method must be call only in the start method (or after).
In the configure method, this method can not return a consistent
result as all handlers are not plugged.
- Specified by:
getHandler
in class org.apache.felix.ipojo.Handler
- Parameters:
name
- : name of the handler to find (class name).
- Returns:
- the composite handler object or null if the handler is not found.