org.jboss.ejb3.proxy.factory
Class ProxyFactoryBase

java.lang.Object
  extended by org.jboss.ejb3.proxy.factory.ProxyFactoryBase
All Implemented Interfaces:
ProxyFactory
Direct Known Subclasses:
SessionProxyFactoryBase

public abstract class ProxyFactoryBase
extends java.lang.Object
implements ProxyFactory

ProxyFactoryBase A Base upon which Proxy Factory Implementations may build


Constructor Summary
ProxyFactoryBase(java.lang.String name, java.lang.String containerName, java.lang.String containerGuid, java.lang.ClassLoader classloader, org.jboss.aop.Advisor advisor)
          Constructor
 
Method Summary
protected  java.lang.reflect.Constructor<?> createProxyConstructor(java.util.Set<java.lang.Class<?>> interfaces, java.lang.ClassLoader cl)
          Create a Proxy Constructor for the specified interfaces, using the specified CL
protected  org.jboss.aop.Advisor getAdvisor()
           
 java.lang.ClassLoader getClassLoader()
           
protected  java.util.Set<java.lang.Class<?>> getCommonProxyInterfaces()
          Returns Proxy interfaces common to all Proxies generated by this ProxyFactory
protected  java.lang.String getContainerGuid()
           
protected  java.lang.String getContainerName()
           
protected  org.jboss.aop.advice.Interceptor[] getInterceptors()
          Obtains all interceptors in this Proxy Factory's stack
protected  java.lang.String getInterceptorStackName()
          Return the name of the interceptor stack to apply to proxies created by this proxy factory, or null if no interceptors should be applied
 java.lang.String getName()
          Returns the unique name of this ProxyFactory
protected  void setClassLoader(java.lang.ClassLoader classloader)
           
 void setContainerName(java.lang.String containerName)
           
protected  void setName(java.lang.String name)
           
 void start()
          Lifecycle callback to be invoked by the ProxyFactoryDeployer before the ProxyFactory is able to service requests
 void stop()
          Lifecycle callback to be invoked by the ProxyFactoryDeployer before the ProxyFactory is taken out of service, possibly GC'd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyFactoryBase

public ProxyFactoryBase(java.lang.String name,
                        java.lang.String containerName,
                        java.lang.String containerGuid,
                        java.lang.ClassLoader classloader,
                        org.jboss.aop.Advisor advisor)
Constructor

Parameters:
name - The unique name for this ProxyFactory
containerName - The name of the InvokableContext (container) upon which Proxies will invoke
containerGuid - The globally-unique name of the container
classloader - The ClassLoader associated with the EJBContainer for which this ProxyFactory is to generate Proxies
advisor - The Advisor for proxies created by this factory
Method Detail

createProxyConstructor

protected java.lang.reflect.Constructor<?> createProxyConstructor(java.util.Set<java.lang.Class<?>> interfaces,
                                                                  java.lang.ClassLoader cl)
Create a Proxy Constructor for the specified interfaces, using the specified CL

Parameters:
interfaces -
cl -
Returns:
Throws:
java.lang.Exception

getCommonProxyInterfaces

protected java.util.Set<java.lang.Class<?>> getCommonProxyInterfaces()
Returns Proxy interfaces common to all Proxies generated by this ProxyFactory

Returns:

getInterceptorStackName

protected java.lang.String getInterceptorStackName()
Return the name of the interceptor stack to apply to proxies created by this proxy factory, or null if no interceptors should be applied

Returns:

getInterceptors

protected org.jboss.aop.advice.Interceptor[] getInterceptors()
Obtains all interceptors in this Proxy Factory's stack

Returns:

start

public void start()
           throws java.lang.Exception
Lifecycle callback to be invoked by the ProxyFactoryDeployer before the ProxyFactory is able to service requests

Specified by:
start in interface ProxyFactory
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Lifecycle callback to be invoked by the ProxyFactoryDeployer before the ProxyFactory is taken out of service, possibly GC'd

Specified by:
stop in interface ProxyFactory
Throws:
java.lang.Exception

getClassLoader

public java.lang.ClassLoader getClassLoader()

setClassLoader

protected void setClassLoader(java.lang.ClassLoader classloader)

getName

public java.lang.String getName()
Description copied from interface: ProxyFactory
Returns the unique name of this ProxyFactory

Specified by:
getName in interface ProxyFactory
Returns:

setName

protected void setName(java.lang.String name)

getContainerName

protected java.lang.String getContainerName()

setContainerName

public void setContainerName(java.lang.String containerName)

getAdvisor

protected org.jboss.aop.Advisor getAdvisor()

getContainerGuid

protected java.lang.String getContainerGuid()