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()
InvocationContext
getSystemContext
in interface InvocationContext
public org.osgi.framework.Bundle getBundle()
InvocationContext
getBundle
in interface InvocationContext
public org.jboss.osgi.vfs.VirtualFile getRoot()
InvocationContext
getRoot
in interface InvocationContext
public <T> T addAttachment(Class<T> clazz, T value)
addAttachment
in interface org.jboss.osgi.spi.Attachments
public <T> T addAttachment(String name, T value, Class<T> clazz)
addAttachment
in interface org.jboss.osgi.spi.Attachments
public Object addAttachment(String name, Object value)
addAttachment
in interface org.jboss.osgi.spi.Attachments
public <T> T getAttachment(String name, Class<T> clazz)
getAttachment
in interface org.jboss.osgi.spi.Attachments
public <T> T getAttachment(Class<T> clazz)
getAttachment
in interface org.jboss.osgi.spi.Attachments
public Object getAttachment(String name)
getAttachment
in interface org.jboss.osgi.spi.Attachments
public Collection<org.jboss.osgi.spi.Attachments.Key> getAttachmentKeys()
getAttachmentKeys
in interface org.jboss.osgi.spi.Attachments
public <T> T removeAttachment(Class<T> clazz, String name)
removeAttachment
in interface org.jboss.osgi.spi.Attachments
public <T> T removeAttachment(Class<T> clazz)
removeAttachment
in interface org.jboss.osgi.spi.Attachments
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.