groovy.util
Class ProxyGenerator

java.lang.Object
  extended by groovy.util.ProxyGenerator

public class ProxyGenerator
extends Object

Classes to generate 'Proxy' objects which implement interfaces and/or extend classes.

Author:
Paul King, Guillaume Laforge

Field Summary
static boolean debug
           
 
Constructor Summary
ProxyGenerator()
           
 
Method Summary
static Object instantiateAggregate(List interfaces)
           
static Object instantiateAggregate(Map closureMap, List interfaces)
           
static Object instantiateAggregate(Map closureMap, List interfaces, Class clazz)
           
static Object instantiateAggregate(Map closureMap, List interfaces, Class clazz, Object[] constructorArgs)
           
static Object instantiateAggregateFromBaseClass(Class clazz)
           
static Object instantiateAggregateFromBaseClass(Map map, Class clazz)
           
static Object instantiateAggregateFromBaseClass(Map map, Class clazz, Object[] constructorArgs)
           
static Object instantiateAggregateFromInterface(Class clazz)
           
static Object instantiateAggregateFromInterface(Map map, Class clazz)
           
static Object instantiateDelegate(List interfaces, Object delegate)
           
static Object instantiateDelegate(Map closureMap, List interfaces, Object delegate)
           
static Object instantiateDelegate(Object delegate)
           
static Object instantiateDelegateWithBaseClass(Map closureMap, List interfaces, Object delegate)
           
static Object instantiateDelegateWithBaseClass(Map closureMap, List interfaces, Object delegate, Class baseClass)
           
static String shortName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static boolean debug
Constructor Detail

ProxyGenerator

public ProxyGenerator()
Method Detail

instantiateAggregateFromBaseClass

public static Object instantiateAggregateFromBaseClass(Class clazz)

instantiateAggregateFromBaseClass

public static Object instantiateAggregateFromBaseClass(Map map,
                                                       Class clazz)

instantiateAggregateFromBaseClass

public static Object instantiateAggregateFromBaseClass(Map map,
                                                       Class clazz,
                                                       Object[] constructorArgs)

instantiateAggregateFromInterface

public static Object instantiateAggregateFromInterface(Class clazz)

instantiateAggregateFromInterface

public static Object instantiateAggregateFromInterface(Map map,
                                                       Class clazz)

instantiateAggregate

public static Object instantiateAggregate(List interfaces)

instantiateAggregate

public static Object instantiateAggregate(Map closureMap,
                                          List interfaces)

instantiateAggregate

public static Object instantiateAggregate(Map closureMap,
                                          List interfaces,
                                          Class clazz)

instantiateAggregate

public static Object instantiateAggregate(Map closureMap,
                                          List interfaces,
                                          Class clazz,
                                          Object[] constructorArgs)

instantiateDelegate

public static Object instantiateDelegate(Object delegate)

instantiateDelegate

public static Object instantiateDelegate(List interfaces,
                                         Object delegate)

instantiateDelegate

public static Object instantiateDelegate(Map closureMap,
                                         List interfaces,
                                         Object delegate)

instantiateDelegateWithBaseClass

public static Object instantiateDelegateWithBaseClass(Map closureMap,
                                                      List interfaces,
                                                      Object delegate)

instantiateDelegateWithBaseClass

public static Object instantiateDelegateWithBaseClass(Map closureMap,
                                                      List interfaces,
                                                      Object delegate,
                                                      Class baseClass)

shortName

public static String shortName(String name)

Copyright © 2003-2007 The Codehaus. All rights reserved.