org.apache.felix.ipojo
Interface HandlerFactory

All Superinterfaces:
Factory
All Known Implementing Classes:
HandlerManagerFactory

public interface HandlerFactory
extends Factory

Service interface published by handler factory. This interface allows interacting the the handler factory to create Handler objects.

Author:
Felix Project Team
See Also:
Factory

Field Summary
static String IPOJO_NAMESPACE
          The iPOJO Default Namespace.
 
Fields inherited from interface org.apache.felix.ipojo.Factory
INVALID, VALID
 
Method Summary
 String getHandlerName()
          Gets the name associated with this handler factory.
 String getNamespace()
          Gets the namespace associated with this handler factory.
 int getStartLevel()
          Gets the start level of the handler objects created by this factory.
 String getType()
          Gets the type of the handler factory.
 
Methods inherited from interface org.apache.felix.ipojo.Factory
addFactoryStateListener, createComponentInstance, createComponentInstance, getBundleContext, getClassName, getComponentDescription, getDescription, getMissingHandlers, getName, getRequiredHandlers, getState, getVersion, isAcceptable, reconfigure, removeFactoryStateListener
 

Field Detail

IPOJO_NAMESPACE

static final String IPOJO_NAMESPACE
The iPOJO Default Namespace.

See Also:
Constant Field Values
Method Detail

getNamespace

String getNamespace()
Gets the namespace associated with this handler factory.

Returns:
the namespace used by this handler

getHandlerName

String getHandlerName()
Gets the name associated with this handler factory.

Returns:
the name used by this handler

getType

String getType()
Gets the type of the handler factory. The handler can only be plugged on instance container with the same type. Basically, types are primitive and composite.

Returns:
the type of the handler

getStartLevel

int getStartLevel()
Gets the start level of the handler objects created by this factory. Handlers with a low start level are configured and started before handlers with an higher start level. Moreover, these handlers are stopped and disposed after.

Returns:
the handler's start level


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.