public class InvocationContextImpl extends Object implements InvocationContext
| Constructor and Description |
|---|
InvocationContextImpl(org.osgi.framework.BundleContext systemContext,
org.osgi.framework.Bundle bundle,
org.jboss.osgi.vfs.VirtualFile root,
org.jboss.osgi.spi.Attachments attachments) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
addAttachment(Class<T> clazz,
T value) |
Object |
addAttachment(String name,
Object value) |
<T> T |
addAttachment(String name,
T value,
Class<T> clazz) |
<T> T |
getAttachment(Class<T> clazz) |
Object |
getAttachment(String name) |
<T> T |
getAttachment(String name,
Class<T> clazz) |
Collection<org.jboss.osgi.spi.Attachments.Key> |
getAttachmentKeys() |
org.osgi.framework.Bundle |
getBundle()
Get the bundle
|
org.jboss.osgi.vfs.VirtualFile |
getRoot()
Get the root virtual file
|
org.osgi.framework.BundleContext |
getSystemContext()
Get the system bundle context
|
<T> T |
removeAttachment(Class<T> clazz) |
<T> T |
removeAttachment(Class<T> clazz,
String name) |
Object |
removeAttachment(String name) |
public InvocationContextImpl(org.osgi.framework.BundleContext systemContext,
org.osgi.framework.Bundle bundle,
org.jboss.osgi.vfs.VirtualFile root,
org.jboss.osgi.spi.Attachments attachments)
public org.osgi.framework.BundleContext getSystemContext()
InvocationContextgetSystemContext in interface InvocationContextpublic org.osgi.framework.Bundle getBundle()
InvocationContextgetBundle in interface InvocationContextpublic org.jboss.osgi.vfs.VirtualFile getRoot()
InvocationContextgetRoot in interface InvocationContextpublic <T> T addAttachment(Class<T> clazz, T value)
addAttachment in interface org.jboss.osgi.spi.Attachmentspublic <T> T addAttachment(String name, T value, Class<T> clazz)
addAttachment in interface org.jboss.osgi.spi.Attachmentspublic Object addAttachment(String name, Object value)
addAttachment in interface org.jboss.osgi.spi.Attachmentspublic <T> T getAttachment(String name, Class<T> clazz)
getAttachment in interface org.jboss.osgi.spi.Attachmentspublic <T> T getAttachment(Class<T> clazz)
getAttachment in interface org.jboss.osgi.spi.Attachmentspublic Object getAttachment(String name)
getAttachment in interface org.jboss.osgi.spi.Attachmentspublic Collection<org.jboss.osgi.spi.Attachments.Key> getAttachmentKeys()
getAttachmentKeys in interface org.jboss.osgi.spi.Attachmentspublic <T> T removeAttachment(Class<T> clazz, String name)
removeAttachment in interface org.jboss.osgi.spi.Attachmentspublic <T> T removeAttachment(Class<T> clazz)
removeAttachment in interface org.jboss.osgi.spi.AttachmentsCopyright © 2012 JBoss by Red Hat. All Rights Reserved.