|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.spi.capability.Capability
public abstract class Capability
An abstract OSGi capability that can be installed in an OSGiRuntime.
The capability is only installed if the service name given in the constructor is not already registered with the OSGi framework.
It maintains an ordered set of dependent capabilities and bundles that must be installed to provide the functionality advertised by this capability.
| Constructor Summary | |
|---|---|
Capability(java.lang.String serviceName)
Construct a capability that is identified by the given service name. |
|
Capability(java.lang.String serviceName,
java.lang.String filter)
Construct a capability that is identified by the given service name and filter string. |
|
| Method Summary | |
|---|---|
protected void |
addBundle(java.lang.String location)
|
protected void |
addDependency(Capability dependency)
|
void |
addSystemProperty(java.lang.String key,
java.lang.String value)
Add a system property provided by this capability. |
java.util.List<BundleInfo> |
getBundles()
|
java.util.List<Capability> |
getDependencies()
|
java.lang.String |
getFilter()
Get the filter that is used for service lookup. |
java.lang.String |
getServiceName()
Get the service name associated with this capability. |
java.util.Map<java.lang.String,java.lang.String> |
getSystemProperties()
Get the system properties for this capability. |
void |
setFilter(java.lang.String filter)
Set the filter that is used for service lookup. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Capability(java.lang.String serviceName)
OSGiRuntime adding this capability
does nothing.
If the service name is null the capability will install each associated bundle unless a bundle with the
same symbolic name is already installed.
serviceName - The service that would be registered by this capability.
public Capability(java.lang.String serviceName,
java.lang.String filter)
OSGiRuntime adding this capability
does nothing.
| Method Detail |
|---|
public java.lang.String getServiceName()
public java.lang.String getFilter()
public void setFilter(java.lang.String filter)
public void addSystemProperty(java.lang.String key,
java.lang.String value)
public java.util.Map<java.lang.String,java.lang.String> getSystemProperties()
public java.util.List<Capability> getDependencies()
protected void addDependency(Capability dependency)
public java.util.List<BundleInfo> getBundles()
protected void addBundle(java.lang.String location)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||