org.jboss.ejb3.proxy.impl.factory.session.stateful
Interface StatefulSessionProxyFactory

All Superinterfaces:
ProxyFactory, SessionProxyFactory, SessionSpecProxyFactory
All Known Implementing Classes:
StatefulSessionLocalProxyFactory, StatefulSessionProxyFactoryBase, StatefulSessionRemoteProxyFactory

public interface StatefulSessionProxyFactory
extends SessionSpecProxyFactory

StatefulSessionProxyFactory Extension for SFSB Proxy Factories in which case methods defined by SessionProxyFactory result in creation of a new Session, while the overloaded methods provided here may create a Proxy for a specified Session ID

Version:
$Revision: $
Author:
ALR

Method Summary
 Object createProxyBusiness(Serializable sessionId, String businessInterfaceName)
          Create an EJB3 Business Proxy specific to the specified target business interface name (expressed as a fully-qualified class name)
 Object createProxyDefault(Serializable sessionId)
          Create an EJB3 Business proxy with no specific target business interface.
 Object createProxyEjb2x(Serializable sessionId)
          Create an EJB2.x Proxy
 Object createProxyHome()
          Create an EJB2.x Home Proxy
 
Methods inherited from interface org.jboss.ejb3.proxy.impl.factory.session.SessionSpecProxyFactory
createProxyBusiness, createProxyEjb2x
 
Methods inherited from interface org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory
createProxyDefault
 
Methods inherited from interface org.jboss.ejb3.proxy.impl.factory.ProxyFactory
getName, start, stop
 

Method Detail

createProxyHome

Object createProxyHome()
Create an EJB2.x Home Proxy

Specified by:
createProxyHome in interface SessionSpecProxyFactory
Returns:

createProxyDefault

Object createProxyDefault(Serializable sessionId)
Create an EJB3 Business proxy with no specific target business interface. The returned proxy will implement all appropriate business interfaces. Additionally, if the Home interface is bound alongside the Default (same JNDI Name), this Proxy will implement the Home interface as well.

Parameters:
sessionId -
Returns:

createProxyBusiness

Object createProxyBusiness(Serializable sessionId,
                           String businessInterfaceName)
Create an EJB3 Business Proxy specific to the specified target business interface name (expressed as a fully-qualified class name)

Parameters:
sessionId -
businessInterfaceName -
Returns:

createProxyEjb2x

Object createProxyEjb2x(Serializable sessionId)
Create an EJB2.x Proxy

Parameters:
sessionId -
Returns:


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.