org.apache.felix.ipojo
Interface ContextSource


public interface ContextSource

Context Source service interface.

Author:
Felix Project Team

Method Summary
 java.util.Dictionary getContext()
          Get the whole context.
 java.lang.Object getProperty(java.lang.String property)
          Get the current value of the given property.
 void registerContextListener(ContextListener listener, java.lang.String[] properties)
          Register a context listener on the given set of properties.
 void unregisterContextListener(ContextListener listener)
          Unregister the given context listener.
 

Method Detail

getProperty

java.lang.Object getProperty(java.lang.String property)
Get the current value of the given property.

Parameters:
property - : property name
Returns:
the property value, null if unknown

getContext

java.util.Dictionary getContext()
Get the whole context.

Returns:
the dictionary [Property, Value]

registerContextListener

void registerContextListener(ContextListener listener,
                             java.lang.String[] properties)
Register a context listener on the given set of properties. The listener will be notified of every change made on these properties.

Parameters:
listener - : the context listener to register.
properties - : property set monitored by the listener.

unregisterContextListener

void unregisterContextListener(ContextListener listener)
Unregister the given context listener.

Parameters:
listener - : the listener to unregister.