org.jboss.ejb3.nointerface.impl.view.factory
Class StatefulNoInterfaceViewProxyFactory

java.lang.Object
  extended by org.jboss.ejb3.nointerface.impl.view.factory.StatefulNoInterfaceViewProxyFactory

public class StatefulNoInterfaceViewProxyFactory
extends java.lang.Object

Responsible for (not necessarily in the following order) - Creating a session from the stateful container - Creating the no-interface view for a stateful session bean

Version:
$Revision: $
Author:
Jaikiran Pai

Field Summary
protected  java.lang.Class<?> beanClass
          The bean class
protected  org.jboss.kernel.spi.dependency.KernelControllerContext endpointContext
          The KernelControllerContext corresponding to the container of a bean for which the no-interface view is to be created by this factory.
 
Constructor Summary
StatefulNoInterfaceViewProxyFactory(java.lang.Class<?> beanClass, org.jboss.kernel.spi.dependency.KernelControllerContext containerContext, org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData metadata)
          Constructor
 
Method Summary
 java.lang.Object createNoInterfaceView()
          First creates a session and then creates a no-interface view for the bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beanClass

protected java.lang.Class<?> beanClass
The bean class


endpointContext

protected org.jboss.kernel.spi.dependency.KernelControllerContext endpointContext
The KernelControllerContext corresponding to the container of a bean for which the no-interface view is to be created by this factory. This context may not be in INSTALLED state. This factory is responsible for pushing it to INSTALLED state whenever necessary.

Constructor Detail

StatefulNoInterfaceViewProxyFactory

public StatefulNoInterfaceViewProxyFactory(java.lang.Class<?> beanClass,
                                           org.jboss.kernel.spi.dependency.KernelControllerContext containerContext,
                                           org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData metadata)
Constructor

Parameters:
beanClass -
container -
statefulSessionFactory -
metadata - Bean metadata, required
Method Detail

createNoInterfaceView

public java.lang.Object createNoInterfaceView()
                                       throws java.lang.Exception
First creates a session and then creates a no-interface view for the bean.

Returns:
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.