public class AbstractBundleCapability extends AbstractCapability implements org.osgi.framework.wiring.BundleCapability
BundleCapability
.Constructor and Description |
---|
AbstractBundleCapability(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() |
<T> T |
removeAttachment(Class<T> clazz)
Remove an attached object for a given key
|
getAttribute, getAttributes, getDirective, getDirectives, getMandatoryAttributes, getNamespace, 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.BundleCapability
public org.osgi.framework.wiring.BundleRevision getResource()
getResource
in interface org.osgi.framework.resource.Capability
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 © 2012 JBoss by Red Hat. All Rights Reserved.