org.apache.commons.proxy.factory.util
Class AbstractProxyClassGenerator

java.lang.Object
  extended by org.apache.commons.proxy.factory.util.AbstractProxyClassGenerator
All Implemented Interfaces:
ProxyClassGenerator

public abstract class AbstractProxyClassGenerator
extends Object
implements ProxyClassGenerator

A useful superclass for ProxyClassGenerator implementations.

Since:
1.0
Author:
James Carman

Constructor Summary
AbstractProxyClassGenerator()
           
 
Method Summary
static Method[] getImplementationMethods(Class[] proxyClasses)
          Returns all methods that a proxy class must implement from the proxy interfaces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.proxy.factory.util.ProxyClassGenerator
generateProxyClass
 

Constructor Detail

AbstractProxyClassGenerator

public AbstractProxyClassGenerator()
Method Detail

getImplementationMethods

public static Method[] getImplementationMethods(Class[] proxyClasses)
Returns all methods that a proxy class must implement from the proxy interfaces. This method makes sure there are no method signature clashes. For methods with the same signature (name and parameter types), the one encountered first will be returned in the result. Final methods are also excluded from the result.

Parameters:
proxyClasses - the interfaces the proxy class must implement
Returns:
all methods that the proxy class must implement


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.