|
||||||||||
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 java.lang.String |
SOURCE_NAME
Source Name service property. |
Constructor Summary | |
---|---|
SourceManager(java.lang.String sources,
java.lang.String depfilter,
org.apache.felix.ipojo.util.DependencyModel dependency,
CompositeManager manager)
Constructor. |
Method Summary | |
---|---|
static java.lang.String[] |
getProperties(java.lang.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 java.lang.String |
substitute(java.lang.String str,
java.util.Dictionary values)
This method substitute ${var} substring by values stored in a map. |
void |
update(org.apache.felix.ipojo.ContextSource source,
java.lang.String property,
java.lang.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 java.lang.String SOURCE_NAME
Constructor Detail |
---|
public SourceManager(java.lang.String sources, java.lang.String depfilter, org.apache.felix.ipojo.util.DependencyModel dependency, CompositeManager manager) throws org.apache.felix.ipojo.ConfigurationException
sources
- : context-source attribute from the dependency metadatadepfilter
- : original dependency filterdependency
- : dependency objectmanager
- : composite manager
org.apache.felix.ipojo.ConfigurationException
- : the sources are incorrect.Method Detail |
---|
public void start()
public void stop()
public int getState()
public static java.lang.String substitute(java.lang.String str, java.util.Dictionary values)
str
- : string with variablesvalues
- : dictionary containing the variable name and the value.
public static java.lang.String[] getProperties(java.lang.String str)
str
- : string form of the filter.
public void update(org.apache.felix.ipojo.ContextSource source, java.lang.String property, java.lang.Object value)
update
in interface org.apache.felix.ipojo.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 |