org.jboss.osgi.deployment.internal
Class InvocationContextImpl
java.lang.Object
org.jboss.osgi.deployment.internal.InvocationContextImpl
- All Implemented Interfaces:
- InvocationContext, org.jboss.osgi.spi.Attachments
public class InvocationContextImpl
- extends Object
- implements InvocationContext
The context passed between Interceptors
- Since:
- 27-May-2009
- Author:
- thomas.diesler@jboss.com
| Nested classes/interfaces inherited from interface org.jboss.osgi.spi.Attachments |
org.jboss.osgi.spi.Attachments.Key |
|
Constructor Summary |
InvocationContextImpl(org.osgi.framework.BundleContext systemContext,
org.osgi.framework.Bundle bundle,
org.jboss.osgi.vfs.VirtualFile root,
org.jboss.osgi.spi.Attachments attachments)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InvocationContextImpl
public InvocationContextImpl(org.osgi.framework.BundleContext systemContext,
org.osgi.framework.Bundle bundle,
org.jboss.osgi.vfs.VirtualFile root,
org.jboss.osgi.spi.Attachments attachments)
getSystemContext
public org.osgi.framework.BundleContext getSystemContext()
- Description copied from interface:
InvocationContext
- Get the system bundle context
- Specified by:
getSystemContext in interface InvocationContext
getBundle
public org.osgi.framework.Bundle getBundle()
- Description copied from interface:
InvocationContext
- Get the bundle
- Specified by:
getBundle in interface InvocationContext
getRoot
public org.jboss.osgi.vfs.VirtualFile getRoot()
- Description copied from interface:
InvocationContext
- Get the root virtual file
- Specified by:
getRoot in interface InvocationContext
addAttachment
public <T> T addAttachment(Class<T> clazz,
T value)
- Specified by:
addAttachment in interface org.jboss.osgi.spi.Attachments
addAttachment
public <T> T addAttachment(String name,
T value,
Class<T> clazz)
- Specified by:
addAttachment in interface org.jboss.osgi.spi.Attachments
addAttachment
public Object addAttachment(String name,
Object value)
- Specified by:
addAttachment in interface org.jboss.osgi.spi.Attachments
getAttachment
public <T> T getAttachment(String name,
Class<T> clazz)
- Specified by:
getAttachment in interface org.jboss.osgi.spi.Attachments
getAttachment
public <T> T getAttachment(Class<T> clazz)
- Specified by:
getAttachment in interface org.jboss.osgi.spi.Attachments
getAttachment
public Object getAttachment(String name)
- Specified by:
getAttachment in interface org.jboss.osgi.spi.Attachments
getAttachmentKeys
public Collection<org.jboss.osgi.spi.Attachments.Key> getAttachmentKeys()
- Specified by:
getAttachmentKeys in interface org.jboss.osgi.spi.Attachments
removeAttachment
public <T> T removeAttachment(Class<T> clazz,
String name)
- Specified by:
removeAttachment in interface org.jboss.osgi.spi.Attachments
removeAttachment
public <T> T removeAttachment(Class<T> clazz)
- Specified by:
removeAttachment in interface org.jboss.osgi.spi.Attachments
removeAttachment
public Object removeAttachment(String name)
- Specified by:
removeAttachment in interface org.jboss.osgi.spi.Attachments
Copyright © 2012. All Rights Reserved.