public class AbstractInvocationContext extends Object implements InvocationContext
| Constructor and Description |
|---|
AbstractInvocationContext(BundleContext systemContext,
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
|
Bundle |
getBundle()
Get the bundle
|
VirtualFile |
getRoot()
Get the root virtual file
|
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(BundleContext systemContext, Bundle bundle, VirtualFile root, Attachable attachments)
public BundleContext getSystemContext()
InvocationContextgetSystemContext in interface InvocationContextpublic 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 © 2014 JBoss by Red Hat. All Rights Reserved.