public class ConfigAdminTracker extends Object implements org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.cm.ConfigurationAdmin,Object>, org.apache.deltaspike.core.spi.config.ConfigSourceProvider
| Constructor and Description |
|---|
ConfigAdminTracker() |
| Modifier and Type | Method and Description |
|---|---|
Object |
addingService(org.osgi.framework.ServiceReference<org.osgi.service.cm.ConfigurationAdmin> reference)
Adds config.
|
List<org.apache.deltaspike.core.spi.config.ConfigSource> |
getConfigSources()
Gets the configuration sources.
|
static ConfigAdminTracker |
getInstance(org.osgi.framework.BundleContext context)
Singleton.
|
Map<String,String> |
getProperties()
Retrieves the Properties map.
|
String |
getProperty(String key)
Get the property with the according key.
|
void |
modifiedService(org.osgi.framework.ServiceReference<org.osgi.service.cm.ConfigurationAdmin> reference,
Object service)
Modified a config.
|
void |
removedService(org.osgi.framework.ServiceReference<org.osgi.service.cm.ConfigurationAdmin> reference,
Object service)
removed config.
|
static void |
stop()
Stops the tracker.
|
public static ConfigAdminTracker getInstance(org.osgi.framework.BundleContext context)
context - the bundle contextpublic static void stop()
public final Object addingService(org.osgi.framework.ServiceReference<org.osgi.service.cm.ConfigurationAdmin> reference)
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.cm.ConfigurationAdmin,Object>public final void modifiedService(org.osgi.framework.ServiceReference<org.osgi.service.cm.ConfigurationAdmin> reference,
Object service)
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.cm.ConfigurationAdmin,Object>public final void removedService(org.osgi.framework.ServiceReference<org.osgi.service.cm.ConfigurationAdmin> reference,
Object service)
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.cm.ConfigurationAdmin,Object>public String getProperty(String key) throws IOException, org.osgi.framework.InvalidSyntaxException
key - the propertuy keyIOException - read errororg.osgi.framework.InvalidSyntaxException - wrong keypublic Map<String,String> getProperties()
public List<org.apache.deltaspike.core.spi.config.ConfigSource> getConfigSources()
getConfigSources in interface org.apache.deltaspike.core.spi.config.ConfigSourceProviderCopyright © 2013–2015 Osgiliath. All rights reserved.