|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.resolver.spi.AbstractBundleRequirement
public class AbstractBundleRequirement
The abstract implementation of a BundleRequirement.
| Constructor Summary | |
|---|---|
protected |
AbstractBundleRequirement(XRequirement requirement)
|
| Method Summary | ||
|---|---|---|
|
adapt(Class<T> clazz)
|
|
|
addAttachment(Class<T> clazz,
T value)
Attach an arbirtary object with this element. |
|
boolean |
equals(Object obj)
|
|
|
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()
Get the attributes |
|
String |
getDirective(String key)
Get the value of the given directive |
|
Map<String,String> |
getDirectives()
Get the directives |
|
String |
getNamespace()
|
|
org.osgi.framework.wiring.BundleRevision |
getResource()
|
|
org.osgi.framework.wiring.BundleRevision |
getRevision()
|
|
int |
hashCode()
|
|
boolean |
isOptional()
|
|
boolean |
matches(org.osgi.framework.wiring.BundleCapability capability)
|
|
boolean |
matches(org.osgi.framework.resource.Capability capability)
|
|
|
removeAttachment(Class<T> clazz)
Remove an attached object for a given key |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.osgi.resolver.XElement |
|---|
adapt |
| Methods inherited from interface org.jboss.osgi.resolver.XAttachmentSupport |
|---|
addAttachment, getAttachment, removeAttachment |
| Constructor Detail |
|---|
protected AbstractBundleRequirement(XRequirement requirement)
| Method Detail |
|---|
public String getNamespace()
getNamespace in interface org.osgi.framework.resource.RequirementgetNamespace in interface org.osgi.framework.wiring.BundleRequirementpublic boolean isOptional()
isOptional in interface XRequirementpublic Map<String,String> getDirectives()
XDirectiveSupport
getDirectives in interface XDirectiveSupportgetDirectives in interface org.osgi.framework.resource.RequirementgetDirectives in interface org.osgi.framework.wiring.BundleRequirementpublic String getDirective(String key)
XDirectiveSupport
getDirective in interface XDirectiveSupportpublic Map<String,Object> getAttributes()
XAttributeSupport
getAttributes in interface XAttributeSupportgetAttributes in interface org.osgi.framework.resource.RequirementgetAttributes in interface org.osgi.framework.wiring.BundleRequirementpublic Object getAttribute(String key)
XAttributeSupport
getAttribute in interface XAttributeSupportpublic org.osgi.framework.wiring.BundleRevision getRevision()
getRevision in interface org.osgi.framework.wiring.BundleRequirementpublic org.osgi.framework.wiring.BundleRevision getResource()
getResource in interface org.osgi.framework.resource.RequirementgetResource in interface org.osgi.framework.wiring.BundleRequirementpublic boolean matches(org.osgi.framework.wiring.BundleCapability capability)
matches in interface org.osgi.framework.wiring.BundleRequirementpublic boolean matches(org.osgi.framework.resource.Capability capability)
matches in interface org.osgi.framework.resource.Requirementmatches in interface org.osgi.framework.wiring.BundleRequirementpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic <T> T adapt(Class<T> clazz)
adapt in interface XElement
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 | |||||||||