public class AbstractInvocationContext extends Object implements InvocationContext
Constructor and Description |
---|
AbstractInvocationContext(org.osgi.framework.BundleContext systemContext,
org.osgi.framework.Bundle bundle,
org.jboss.osgi.vfs.VirtualFile root,
org.jboss.osgi.spi.Attachable attachments) |
Modifier and Type | Method and Description |
---|---|
<T> T |
getAttachment(org.jboss.osgi.spi.AttachmentKey<T> type) |
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 |
putAttachment(org.jboss.osgi.spi.AttachmentKey<T> key,
T value) |
<T> T |
removeAttachment(org.jboss.osgi.spi.AttachmentKey<T> clazz) |
public AbstractInvocationContext(org.osgi.framework.BundleContext systemContext, org.osgi.framework.Bundle bundle, org.jboss.osgi.vfs.VirtualFile root, org.jboss.osgi.spi.Attachable 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 putAttachment(org.jboss.osgi.spi.AttachmentKey<T> key, T value)
putAttachment
in interface org.jboss.osgi.spi.Attachable
public <T> T getAttachment(org.jboss.osgi.spi.AttachmentKey<T> type)
getAttachment
in interface org.jboss.osgi.spi.Attachable
public <T> T removeAttachment(org.jboss.osgi.spi.AttachmentKey<T> clazz)
removeAttachment
in interface org.jboss.osgi.spi.Attachable
Copyright © 2013 JBoss by Red Hat. All rights reserved.