private class InstantiatedByManager.InstanceDeclaration extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.apache.felix.ipojo.Factory |
factory
The factory.
|
private Map<String,org.apache.felix.ipojo.ComponentInstance> |
instances
The component instance, created and disposed dynamically.
|
private String |
target
The PID of the configuration, can be a configuration PID and factory PID.
|
| Modifier | Constructor and Description |
|---|---|
private |
InstanceDeclaration(org.apache.felix.ipojo.Factory factory,
String target)
Creates a new instance of
InstantiatedByManager.InstanceDeclaration. |
| Modifier and Type | Method and Description |
|---|---|
void |
attachOrUpdate(org.osgi.service.cm.Configuration configuration)
Attaches this request to the given configuration.
|
private org.apache.felix.ipojo.ComponentInstance |
create(org.osgi.service.cm.Configuration configuration) |
void |
dispose()
Disposes the all created instances.
|
void |
dispose(String pid)
Disposes the instance matching the given configuration pid.
|
boolean |
matches(org.osgi.service.cm.Configuration configuration)
Checks whether or not the given configuration match the configuration name.
|
boolean |
matches(String pid,
String factoryPid)
Checks whether of not the given pid **or** factory pid matches the current required configuration.
|
private final org.apache.felix.ipojo.Factory factory
private final String target
private InstanceDeclaration(org.apache.felix.ipojo.Factory factory,
String target)
InstantiatedByManager.InstanceDeclaration.factory - the factorytarget - the targetpublic void dispose()
public void dispose(String pid)
pid - the pidpublic boolean matches(org.osgi.service.cm.Configuration configuration)
configuration - the configurationtrue if it matches, false otherwisepublic boolean matches(String pid, String factoryPid)
pid - the pidfactoryPid - the factory pidtrue if it matches, false otherwiseprivate org.apache.felix.ipojo.ComponentInstance create(org.osgi.service.cm.Configuration configuration)
public void attachOrUpdate(org.osgi.service.cm.Configuration configuration)
configuration - the configuration.Copyright © 2013–2015 Wisdom Framework. All rights reserved.