de.netseeker.ejoe.handler.gen
Class DynProxyGenerator

java.lang.Object
  extended by de.netseeker.ejoe.handler.gen.DynProxyGenerator
All Implemented Interfaces:
IProxyGenerator

public class DynProxyGenerator
extends java.lang.Object
implements IProxyGenerator

Javassist based default proxy generator for accelerated access on reflected methods and constructors. This generator creates and caches one class for each class-method-pair respectively class-constrcutor-pair.

Since:
0.3.9.1
Author:
netseeker
See Also:
http://www.jboss.org/products/javassist

Constructor Summary
DynProxyGenerator()
          Creates a new instance of DynProxyGenerator This constructor will throw an IllegalStateException if the current java version is lesser than 1.5.0
 
Method Summary
 IDynAccess getDynAccessProxy(java.lang.Class tClass, java.lang.String mName, java.lang.Object[] params)
          Either returns a copy of an already cached instance of a proxy or creates a new one, instaniate it, add it to cache and return a copy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynProxyGenerator

public DynProxyGenerator()
Creates a new instance of DynProxyGenerator This constructor will throw an IllegalStateException if the current java version is lesser than 1.5.0

Method Detail

getDynAccessProxy

public IDynAccess getDynAccessProxy(java.lang.Class tClass,
                                    java.lang.String mName,
                                    java.lang.Object[] params)
                             throws java.lang.Exception
Either returns a copy of an already cached instance of a proxy or creates a new one, instaniate it, add it to cache and return a copy.

Specified by:
getDynAccessProxy in interface IProxyGenerator
Parameters:
tClasName - the targetted class
mName - the targetted method/constructor name
params - array of arguments for the targetted method/constructor
Returns:
a copy of an instance of IDynAccess
Throws:
java.lang.Exception


Copyright © 2005-2007 netseeker. All Rights Reserved.