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, validateAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttributes, getDirectives, getNamespace
addAttachment, getAttachment, removeAttachment
public org.osgi.framework.wiring.BundleRevision getRevision()
getRevision
in interface org.osgi.framework.wiring.BundleRequirement
public org.osgi.framework.wiring.BundleRevision getResource()
getResource
in interface org.osgi.framework.resource.Requirement
public boolean matches(org.osgi.framework.wiring.BundleCapability cap)
matches
in interface org.osgi.framework.wiring.BundleRequirement
public <T> T addAttachment(Class<T> clazz, T value)
XAttachmentSupport
addAttachment
in interface XAttachmentSupport
clazz
- key for the attachmentpublic <T> T getAttachment(Class<T> clazz)
XAttachmentSupport
getAttachment
in interface XAttachmentSupport
clazz
- key for the attachmentpublic <T> T removeAttachment(Class<T> clazz)
XAttachmentSupport
removeAttachment
in interface XAttachmentSupport
clazz
- key for the attachmentCopyright © 2013 JBoss by Red Hat. All Rights Reserved.