org.jboss.ejb3.nointerface.factory
Class NoInterfaceEJBViewFactoryBase

java.lang.Object
  extended by org.jboss.ejb3.nointerface.factory.NoInterfaceEJBViewFactoryBase
All Implemented Interfaces:
NoInterfaceViewFactory
Direct Known Subclasses:
MCAwareStatefulNoInterfaceViewFactory

public class NoInterfaceEJBViewFactoryBase
extends java.lang.Object
implements NoInterfaceViewFactory

NoInterfaceEJBViewFactoryBase Creates a no-interface view for a EJB as per the EJB3.1 spec (section 3.4.4)

See Also:
NoInterfaceViewFactory

Constructor Summary
NoInterfaceEJBViewFactoryBase()
           
 
Method Summary
<T> T
createView(java.lang.reflect.InvocationHandler invocationHandler, java.lang.Class<T> beanClass)
          Inspects the bean class for all public methods and creates a proxy (sub-class) out of it with overriden implementation of the public methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoInterfaceEJBViewFactoryBase

public NoInterfaceEJBViewFactoryBase()
Method Detail

createView

public <T> T createView(java.lang.reflect.InvocationHandler invocationHandler,
                        java.lang.Class<T> beanClass)
             throws java.lang.Exception
Inspects the bean class for all public methods and creates a proxy (sub-class) out of it with overriden implementation of the public methods. The overriden implementation will just give a call to container's invoke(...) method which handles the actual call.

Specified by:
createView in interface NoInterfaceViewFactory
Type Parameters:
T -
Parameters:
invocationHandler - The container correpsonding to the bean class
beanClass - The bean class (currently assumed)
Returns:
Returns the no-interface view for the beanClass
Throws:
java.lang.Exception