public class InstantiatedByManager extends Object implements org.osgi.service.cm.ConfigurationListener
InstantiatedByManager.
It tracks these factories and listens configuration admin instance, and binds them.| Modifier and Type | Class and Description |
|---|---|
private class |
InstantiatedByManager.InstanceDeclaration
Represent an instantiation request.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) org.osgi.service.cm.ConfigurationAdmin |
admin |
(package private) org.osgi.framework.BundleContext |
context |
private List<InstantiatedByManager.InstanceDeclaration> |
declarations |
private Lock |
lock |
private static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
InstantiatedByManager() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addInstanceDeclaration(org.apache.felix.ipojo.Factory factory,
String value) |
void |
bindFactory(org.apache.felix.ipojo.Factory factory)
Bind a factory.
|
void |
configurationEvent(org.osgi.service.cm.ConfigurationEvent event)
Receives a configuration event.
|
private org.osgi.service.cm.Configuration |
find(String pid) |
private org.osgi.service.cm.Configuration[] |
getConfigurationList() |
private InstantiatedByManager.InstanceDeclaration |
getDeclarationByFactory(org.apache.felix.ipojo.Factory factory) |
private List<InstantiatedByManager.InstanceDeclaration> |
getDeclarationsByConfiguration(String pid,
String factoryPid) |
void |
unbindFactory(org.apache.felix.ipojo.Factory factory)
Unbinds a factory.
|
private static final org.slf4j.Logger LOGGER
org.osgi.framework.BundleContext context
org.osgi.service.cm.ConfigurationAdmin admin
private List<InstantiatedByManager.InstanceDeclaration> declarations
private final Lock lock
public void bindFactory(org.apache.felix.ipojo.Factory factory)
factory - the factorypublic void unbindFactory(org.apache.felix.ipojo.Factory factory)
factory - the factoryprivate void addInstanceDeclaration(org.apache.felix.ipojo.Factory factory,
String value)
private org.osgi.service.cm.Configuration[] getConfigurationList()
private InstantiatedByManager.InstanceDeclaration getDeclarationByFactory(org.apache.felix.ipojo.Factory factory)
private List<InstantiatedByManager.InstanceDeclaration> getDeclarationsByConfiguration(String pid, String factoryPid)
public void configurationEvent(org.osgi.service.cm.ConfigurationEvent event)
configurationEvent in interface org.osgi.service.cm.ConfigurationListenerevent - the event.private org.osgi.service.cm.Configuration find(String pid)
Copyright © 2013–2015 Wisdom Framework. All rights reserved.