org.jboss.jms.container
Class Container

java.lang.Object
  extended byorg.jboss.jms.container.Container
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class Container
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

A JMS container


Field Summary
protected  Interceptor[] interceptors
           
protected  SimpleMetaData metadata
           
 
Constructor Summary
Container(Container (src)  parent, Interceptor[] interceptors, SimpleMetaData metadata)
          Create a new container
 
Method Summary
 void addChild(Container (src)  child)
           
 java.util.Set getChildren()
           
static Container (src) getContainer(java.lang.Object object)
          Get the container from a proxy
 Container (src) getParent()
           
 java.lang.Object getProxy()
           
static java.lang.Object getProxy(Invocation invocation)
          Get the proxy from an invocation
 java.lang.Object invoke(Invocation invocation)
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 void removeChild(Container (src)  child)
           
 void setProxy(java.lang.Object proxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interceptors

protected Interceptor[] interceptors

metadata

protected SimpleMetaData metadata
Constructor Detail

Container

public Container(Container (src)  parent,
                 Interceptor[] interceptors,
                 SimpleMetaData metadata)
          throws JMSException (src) 
Create a new container

Parameters:
interceptors - the interceptors
metadata - the meta data
Throws:
JMSException (src) - for any error
Method Detail

getContainer

public static Container (src)  getContainer(java.lang.Object object)
                              throws java.lang.Throwable
Get the container from a proxy

Parameters:
object - the proxy
Throws:
java.lang.Throwable - for any error

getProxy

public static java.lang.Object getProxy(Invocation invocation)
Get the proxy from an invocation

Parameters:
invocation - the conatiner

getProxy

public java.lang.Object getProxy()

setProxy

public void setProxy(java.lang.Object proxy)

getParent

public Container (src)  getParent()

getChildren

public java.util.Set getChildren()

addChild

public void addChild(Container (src)  child)

removeChild

public void removeChild(Container (src)  child)

invoke

public java.lang.Object invoke(Invocation invocation)
                        throws java.lang.Throwable
Throws:
java.lang.Throwable

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable