|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.Handler
org.apache.felix.ipojo.PrimitiveHandler
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler
public class ProvidedServiceHandler
Composite Provided Service Handler. This handler manage the service providing for a composition.
Field Summary |
---|
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 | |
---|---|
ProvidedServiceHandler()
|
Method Summary | |
---|---|
void |
addProperties(Dictionary dict)
Add properties to all provided services. |
void |
configure(Element componentMetadata,
Dictionary configuration)
Configure the handler. |
HandlerDescription |
getDescription()
Build the provided service description. |
ProvidedService[] |
getProvidedServices()
Get the array of provided service. |
void |
initializeComponentFactory(ComponentTypeDescription desc,
Element metadata)
Initialize the component type. |
Object |
onGet(Object pojo,
String fieldName,
Object value)
Getter Callback Method. |
void |
onSet(Object pojo,
String fieldName,
Object value)
Setter Callback Method. |
void |
reconfigure(Dictionary dict)
Reconfigure provided service. |
void |
removeProperties(Dictionary dict)
Remove properties form all provided services. |
void |
start()
Start the provided service handler. |
void |
stateChanged(int state)
Register the services if the new state is VALID. |
void |
stop()
Stop the provided service handler. |
Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler |
---|
attach, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, setFactory |
Methods inherited from class org.apache.felix.ipojo.Handler |
---|
debug, error, error, getHandlerManager, getValidity, info, isValid, setValidity, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProvidedServiceHandler()
Method Detail |
---|
public ProvidedService[] getProvidedServices()
public void configure(Element componentMetadata, Dictionary configuration) throws ConfigurationException
configure
in class Handler
componentMetadata
- : the component type metadataconfiguration
- : the instance configuration
ConfigurationException
- : the metadata are not correct.org.apache.felix.ipojo.Handler#configure(org.apache.felix.ipojo.InstanceManager, org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)
public void stop()
stop
in class Handler
Handler.stop()
public void start()
start
in class Handler
Handler.start()
public void onSet(Object pojo, String fieldName, Object value)
onSet
in interface FieldInterceptor
onSet
in class PrimitiveHandler
pojo
- : the pojo object on which the field is accessedfieldName
- : field namevalue
- : new valueorg.apache.felix.ipojo.Handler#onSet(Object,
java.lang.String, java.lang.Object)
public Object onGet(Object pojo, String fieldName, Object value)
onGet
in interface FieldInterceptor
onGet
in class PrimitiveHandler
pojo
- : the pojo object on which the field is accessedfieldName
- : field namevalue
- : value pushed by the previous handler
org.apache.felix.ipojo.Handler#onGet(Object,
java.lang.String, java.lang.Object)
public void stateChanged(int state)
stateChanged
in class Handler
state
- : the new instance state.Handler.stateChanged(int)
public void addProperties(Dictionary dict)
dict
- : dictionary of properties to addpublic void removeProperties(Dictionary dict)
dict
- : dictionary of properties to delete.public HandlerDescription getDescription()
getDescription
in class Handler
Handler.getDescription()
public void reconfigure(Dictionary dict)
reconfigure
in class Handler
dict
- : the new instance configuration.Handler.reconfigure(java.util.Dictionary)
public void initializeComponentFactory(ComponentTypeDescription desc, Element metadata) throws ConfigurationException
initializeComponentFactory
in class Handler
desc
- : component type description to populate.metadata
- : component type metadata.
ConfigurationException
- : occurs when the POJO does not implement any interfaces.Handler.initializeComponentFactory(org.apache.felix.ipojo.architecture.ComponentTypeDescription, org.apache.felix.ipojo.metadata.Element)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |