public class AbstractBundleRequirement extends AbstractRequirement implements org.osgi.framework.wiring.BundleRequirement
BundleRequirement.| Constructor and Description |
|---|
AbstractBundleRequirement(org.osgi.framework.wiring.BundleRevision brev,
String namespace,
Map<String,Object> atts,
Map<String,String> dirs) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
addAttachment(Class<T> clazz,
T value)
Attach an arbirtary object with this element.
|
<T> T |
getAttachment(Class<T> clazz)
Get the attached object for a given key
|
org.osgi.framework.wiring.BundleRevision |
getResource() |
org.osgi.framework.wiring.BundleRevision |
getRevision() |
boolean |
matches(org.osgi.framework.wiring.BundleCapability cap) |
<T> T |
removeAttachment(Class<T> clazz)
Remove an attached object for a given key
|
getAttribute, getAttributes, getDirective, getDirectives, getMandatoryAttributes, getNamespace, isOptional, matches, matchFilterValue, matchNamespaceValue, toString, validateAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttributes, getDirectives, getNamespaceaddAttachment, getAttachment, removeAttachmentpublic 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.Requirementpublic boolean matches(org.osgi.framework.wiring.BundleCapability cap)
matches in interface org.osgi.framework.wiring.BundleRequirementpublic <T> T addAttachment(Class<T> clazz, T value)
XAttachmentSupportaddAttachment in interface XAttachmentSupportclazz - key for the attachmentpublic <T> T getAttachment(Class<T> clazz)
XAttachmentSupportgetAttachment in interface XAttachmentSupportclazz - key for the attachmentpublic <T> T removeAttachment(Class<T> clazz)
XAttachmentSupportremoveAttachment in interface XAttachmentSupportclazz - key for the attachmentCopyright © 2012 JBoss by Red Hat. All Rights Reserved.