|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(String serviceName)
Construct a capability that is identified by the given service name. |
|
Capability(String serviceName,
String filter)
Construct a capability that is identified by the given service name and filter string. |
Method Summary | |
---|---|
protected void |
addBundle(String location)
|
protected void |
addDependency(Capability dependency)
|
void |
addSystemProperty(String key,
String value)
Add a system property provided by this capability. |
List<BundleInfo> |
getBundles()
|
List<Capability> |
getDependencies()
|
String |
getFilter()
Get the filter that is used for service lookup. |
List<OSGiBundle> |
getInstalledBundles()
|
String |
getServiceName()
Get the service name associated with this capability. |
Map<String,String> |
getSystemProperties()
Get the system properties for this capability. |
void |
install(OSGiRuntime runtime)
|
void |
setFilter(String filter)
Set the filter that is used for service lookup. |
void |
start(OSGiRuntime runtime)
|
void |
stop(OSGiRuntime runtime)
|
void |
uninstall(OSGiRuntime runtime)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Capability(String serviceName)
serviceName
- The service that would be registered by this capability.public Capability(String serviceName, String filter)
Method Detail |
---|
public String getServiceName()
public String getFilter()
public void setFilter(String filter)
public void addSystemProperty(String key, String value)
public Map<String,String> getSystemProperties()
public List<Capability> getDependencies()
protected void addDependency(Capability dependency)
public List<BundleInfo> getBundles()
protected void addBundle(String location)
public List<OSGiBundle> getInstalledBundles()
public void install(OSGiRuntime runtime) throws BundleException
BundleException
public void start(OSGiRuntime runtime) throws BundleException
BundleException
public void stop(OSGiRuntime runtime)
public void uninstall(OSGiRuntime runtime)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |