|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.resolver.spi.AbstractElement
org.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 |
|
boolean |
equals(Object obj)
|
|
Object |
getAttribute(String key)
Get the value of the given attribute |
|
Map<String,Object> |
getAttributes()
Get the attributes |
|
org.osgi.resource.Capability |
getDeclaredCapability()
Return the Capability hosted by the Resource. |
|
String |
getDirective(String key)
Get the value of the given directive |
|
Map<String,String> |
getDirectives()
Get the directives |
|
String |
getNamespace()
|
|
org.osgi.resource.Resource |
getResource()
Return the Resource that hosts this Capability. |
|
int |
hashCode()
|
|
boolean |
isMutable()
|
|
String |
toString()
|
|
void |
validate()
Validate the capability |
|
| Methods inherited from class org.jboss.osgi.resolver.spi.AbstractElement |
|---|
addAttachment, getAttachment, removeAttachment |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.osgi.resolver.XAttachmentSupport |
|---|
addAttachment, getAttachment, removeAttachment |
| Constructor Detail |
|---|
public AbstractHostedCapability(XResource resource,
XCapability capability)
| Method Detail |
|---|
public org.osgi.resource.Resource getResource()
HostedCapability
getResource in interface org.osgi.resource.CapabilitygetResource in interface HostedCapabilitypublic boolean isMutable()
public org.osgi.resource.Capability getDeclaredCapability()
HostedCapability
getDeclaredCapability in interface HostedCapabilitypublic String getNamespace()
getNamespace in interface org.osgi.resource.Capabilitypublic Map<String,String> getDirectives()
XDirectiveSupport
getDirectives in interface XDirectiveSupportgetDirectives in interface org.osgi.resource.Capabilitypublic Map<String,Object> getAttributes()
XAttributeSupport
getAttributes in interface XAttributeSupportgetAttributes in interface org.osgi.resource.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 <T extends XCapability> T adapt(Class<T> clazz)
XCapability
adapt in interface XCapabilitypublic boolean equals(Object obj)
equals in interface org.osgi.resource.Capabilityequals in class Objectpublic int hashCode()
hashCode in interface org.osgi.resource.CapabilityhashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||