org.jboss.osgi.deployment.internal
Class InvocationContextImpl

java.lang.Object
  extended by 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 Class Summary
 
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)
           
 
Method Summary
<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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.