org.jboss.ejb3.proxy.impl.factory
Class ProxyFactoryBase

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

public abstract class ProxyFactoryBase
extends Object
implements ProxyFactory

ProxyFactoryBase A Base upon which Proxy Factory Implementations may build

Version:
$Revision: $
Author:
ALR

Constructor Summary
ProxyFactoryBase(String name, String containerName, String containerGuid, ClassLoader classloader, org.jboss.aop.Advisor advisor)
          Constructor
 
Method Summary
protected  Constructor<?> createProxyConstructor(Set<Class<?>> interfaces, ClassLoader cl)
          Create a Proxy Constructor for the specified interfaces, using the specified CL
protected  org.jboss.aop.Advisor getAdvisor()
           
 ClassLoader getClassLoader()
           
protected  Set<Class<?>> getCommonProxyInterfaces()
          Returns Proxy interfaces common to all Proxies generated by this ProxyFactory
protected  String getContainerGuid()
           
protected  String getContainerName()
           
protected  org.jboss.aop.advice.Interceptor[] getInterceptors()
          Obtains all interceptors in this Proxy Factory's stack
protected  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
 String getName()
          Returns the unique name of this ProxyFactory
protected  void setClassLoader(ClassLoader classloader)
           
 void setContainerName(String containerName)
           
protected  void setName(String name)
           
 void start()
          Lifecycle callback to be invoked by 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(String name,
                        String containerName,
                        String containerGuid,
                        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 Constructor<?> createProxyConstructor(Set<Class<?>> interfaces,
                                                ClassLoader cl)
Create a Proxy Constructor for the specified interfaces, using the specified CL

Parameters:
interfaces -
cl -
Returns:
Throws:
Exception

getCommonProxyInterfaces

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

Returns:

getInterceptorStackName

protected 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 Exception
Lifecycle callback to be invoked by before the ProxyFactory is able to service requests

Specified by:
start in interface ProxyFactory
Throws:
Exception

stop

public void stop()
          throws 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:
Exception

getClassLoader

public ClassLoader getClassLoader()

setClassLoader

protected void setClassLoader(ClassLoader classloader)

getName

public 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(String name)

getContainerName

protected String getContainerName()

setContainerName

public void setContainerName(String containerName)

getAdvisor

protected org.jboss.aop.Advisor getAdvisor()

getContainerGuid

protected String getContainerGuid()


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