|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.composite.util.SourceManager
public class SourceManager
This class manages context-source management.
Field Summary | |
---|---|
static String |
SOURCE_NAME
Source Name service property. |
Constructor Summary | |
---|---|
SourceManager(String sources,
String depfilter,
DependencyModel dependency,
CompositeManager manager)
Constructor. |
Method Summary | |
---|---|
static String[] |
getProperties(String str)
Compute the properties (${name}) from the given filter. |
int |
getState()
Get the state of this source manager. |
void |
start()
Start the context management. |
void |
stop()
Stop the context management. |
static String |
substitute(String str,
Dictionary values)
This method substitute ${var} substring by values stored in a map. |
void |
update(ContextSource source,
String property,
Object value)
A context source has modified a monitored property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SOURCE_NAME
Constructor Detail |
---|
public SourceManager(String sources, String depfilter, DependencyModel dependency, CompositeManager manager) throws ConfigurationException
sources
- : context-source attribute from the dependency metadatadepfilter
- : original dependency filterdependency
- : dependency objectmanager
- : composite manager
ConfigurationException
- : the sources are incorrect.Method Detail |
---|
public void start()
public void stop()
public int getState()
public static String substitute(String str, Dictionary values)
str
- : string with variablesvalues
- : dictionary containing the variable name and the value.
public static String[] getProperties(String str)
str
- : string form of the filter.
public void update(ContextSource source, String property, Object value)
update
in interface ContextListener
source
- : sourceproperty
- : modified propertyvalue
- : new value.ContextListener.update(org.apache.felix.ipojo.ContextSource, java.lang.String, java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |