public class AbstractInvocationContext extends Object implements InvocationContext
| Constructor and Description |
|---|
AbstractInvocationContext(org.osgi.framework.BundleContext systemContext,
org.osgi.framework.Bundle bundle,
VirtualFile root,
Attachable attachments) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAttachment(AttachmentKey<T> type)
Get the attached object for a given key
|
org.osgi.framework.Bundle |
getBundle()
Get the bundle
|
VirtualFile |
getRoot()
Get the root virtual file
|
org.osgi.framework.BundleContext |
getSystemContext()
Get the system bundle context
|
<T> T |
putAttachment(AttachmentKey<T> key,
T value)
Attach an arbirtary object with this element.
|
<T> T |
removeAttachment(AttachmentKey<T> clazz)
Remove an attached object for a given key
|
public AbstractInvocationContext(org.osgi.framework.BundleContext systemContext,
org.osgi.framework.Bundle bundle,
VirtualFile root,
Attachable attachments)
public org.osgi.framework.BundleContext getSystemContext()
InvocationContextgetSystemContext in interface InvocationContextpublic org.osgi.framework.Bundle getBundle()
InvocationContextgetBundle in interface InvocationContextpublic VirtualFile getRoot()
InvocationContextgetRoot in interface InvocationContextpublic <T> T putAttachment(AttachmentKey<T> key, T value)
AttachableputAttachment in interface Attachablekey - key for the attachmentpublic <T> T getAttachment(AttachmentKey<T> type)
AttachablegetAttachment in interface Attachabletype - key for the attachmentpublic <T> T removeAttachment(AttachmentKey<T> clazz)
AttachableremoveAttachment in interface Attachableclazz - key for the attachmentCopyright © 2016 JBoss by Red Hat. All rights reserved.