|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.resolver.spi.AbstractHostedCapability
public class AbstractHostedCapability
The abstract implementation of a HostedCapability.
| Constructor Summary | |
|---|---|
AbstractHostedCapability(XResource resource,
XCapability capability)
|
|
| Method Summary | ||
|---|---|---|
|
adapt(Class<T> clazz)
Adapt this capability to another type |
|
|
addAttachment(Class<T> clazz,
T value)
Attach an arbirtary object with this element. |
|
|
getAttachment(Class<T> clazz)
Get the attached object for a given key |
|
Object |
getAttribute(String key)
Get the value of the given attribute |
|
Map<String,Object> |
getAttributes()
Returns the attributes of this capability. |
|
Capability |
getDeclaredCapability()
Return the Capability hosted by the Resource. |
|
String |
getDirective(String key)
Get the value of the given directive |
|
Map<String,String> |
getDirectives()
Returns the directives of this capability. |
|
String |
getNamespace()
Returns the namespace of this capability. |
|
String |
getPackageName()
The package name |
|
Resource |
getResource()
Return the Resource that hosts this Capability. |
|
org.osgi.framework.Version |
getVersion()
The package version. |
|
|
removeAttachment(Class<T> clazz)
Remove an attached object for a given key |
|
String |
toString()
|
|
void |
validate()
Validate the capability |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.osgi.resolver.XAttachmentSupport |
|---|
addAttachment, getAttachment, removeAttachment |
| Methods inherited from interface org.osgi.resource.Capability |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public AbstractHostedCapability(XResource resource,
XCapability capability)
| Method Detail |
|---|
public Resource getResource()
HostedCapability
getResource in interface CapabilitygetResource in interface HostedCapabilitypublic Capability getDeclaredCapability()
HostedCapability
getDeclaredCapability in interface HostedCapabilitypublic String getNamespace()
Capability
getNamespace in interface Capabilitypublic Map<String,String> getDirectives()
Capability
getDirectives in interface XDirectiveSupportgetDirectives in interface Capabilitypublic Map<String,Object> getAttributes()
Capability
getAttributes in interface XAttributeSupportgetAttributes in interface Capabilitypublic Object getAttribute(String key)
XAttributeSupport
getAttribute in interface XAttributeSupportpublic String getDirective(String key)
XDirectiveSupport
getDirective in interface XDirectiveSupportpublic void validate()
XCapability
validate in interface XCapabilitypublic String getPackageName()
XPackageCapability
getPackageName in interface XPackageCapabilitypublic org.osgi.framework.Version getVersion()
XPackageCapability
getVersion in interface XPackageCapabilitypublic <T extends XCapability> T adapt(Class<T> clazz)
XCapability
adapt in interface XCapabilitypublic String toString()
toString in class Object
public <T> T addAttachment(Class<T> clazz,
T value)
XAttachmentSupport
addAttachment in interface XAttachmentSupportclazz - key for the attachment
public <T> T getAttachment(Class<T> clazz)
XAttachmentSupport
getAttachment in interface XAttachmentSupportclazz - key for the attachment
public <T> T removeAttachment(Class<T> clazz)
XAttachmentSupport
removeAttachment in interface XAttachmentSupportclazz - key for the attachment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||