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 java.lang.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(java.lang.Class<T> clazz,
T value)
- Specified by:
addAttachment in interface org.jboss.osgi.spi.Attachments
addAttachment
public <T> T addAttachment(java.lang.String name,
T value,
java.lang.Class<T> clazz)
- Specified by:
addAttachment in interface org.jboss.osgi.spi.Attachments
addAttachment
public java.lang.Object addAttachment(java.lang.String name,
java.lang.Object value)
- Specified by:
addAttachment in interface org.jboss.osgi.spi.Attachments
getAttachment
public <T> T getAttachment(java.lang.String name,
java.lang.Class<T> clazz)
- Specified by:
getAttachment in interface org.jboss.osgi.spi.Attachments
getAttachment
public <T> T getAttachment(java.lang.Class<T> clazz)
- Specified by:
getAttachment in interface org.jboss.osgi.spi.Attachments
getAttachment
public java.lang.Object getAttachment(java.lang.String name)
- Specified by:
getAttachment in interface org.jboss.osgi.spi.Attachments
getAttachmentKeys
public java.util.Collection<org.jboss.osgi.spi.Attachments.Key> getAttachmentKeys()
- Specified by:
getAttachmentKeys in interface org.jboss.osgi.spi.Attachments
removeAttachment
public <T> T removeAttachment(java.lang.Class<T> clazz,
java.lang.String name)
- Specified by:
removeAttachment in interface org.jboss.osgi.spi.Attachments
removeAttachment
public <T> T removeAttachment(java.lang.Class<T> clazz)
- Specified by:
removeAttachment in interface org.jboss.osgi.spi.Attachments
removeAttachment
public java.lang.Object removeAttachment(java.lang.String name)
- Specified by:
removeAttachment in interface org.jboss.osgi.spi.Attachments
Copyright © 2010. All Rights Reserved.