- groovy.util.ProxyGenerator
-
-
Methods Summary
Methods
Type Params |
Return Type |
Name and description |
|
boolean |
getDebug()
|
|
boolean |
getEmptyMethods()
|
|
ClassLoader |
getOverride()
|
|
GroovyObject |
instantiateAggregate(List<Class> interfaces)
|
|
GroovyObject |
instantiateAggregate(Map closureMap, List<Class> interfaces)
|
|
GroovyObject |
instantiateAggregate(Map closureMap, List<Class> interfaces, Class clazz)
|
|
GroovyObject |
instantiateAggregate(Map closureMap, List<Class> interfaces, Class clazz, Object[] constructorArgs)
|
|
GroovyObject |
instantiateAggregateFromBaseClass(Class clazz)
|
|
GroovyObject |
instantiateAggregateFromBaseClass(Map map, Class clazz)
|
|
GroovyObject |
instantiateAggregateFromBaseClass(Closure cl, Class clazz)
|
|
GroovyObject |
instantiateAggregateFromBaseClass(Class clazz, Object[] constructorArgs)
|
|
GroovyObject |
instantiateAggregateFromBaseClass(Map map, Class clazz, Object[] constructorArgs)
|
|
GroovyObject |
instantiateAggregateFromInterface(Class clazz)
|
|
GroovyObject |
instantiateAggregateFromInterface(Map map, Class clazz)
|
|
GroovyObject |
instantiateDelegate(Object delegate)
|
|
GroovyObject |
instantiateDelegate(List<Class> interfaces, Object delegate)
|
|
GroovyObject |
instantiateDelegate(Map closureMap, List<Class> interfaces, Object delegate)
|
|
GroovyObject |
instantiateDelegateWithBaseClass(Map closureMap, List<Class> interfaces, Object delegate)
|
|
GroovyObject |
instantiateDelegateWithBaseClass(Map closureMap, List<Class> interfaces, Object delegate, Class baseClass)
|
|
GroovyObject |
instantiateDelegateWithBaseClass(Map closureMap, List<Class> interfaces, Object delegate, Class baseClass, String name) Creates a proxy with a delegate object. |
|
void |
setDebug(boolean debug) Instructs ProxyGenerator to dump generated Groovy
source code to standard output during construction. |
|
void |
setEmptyMethods(boolean emptyMethods) Changes generated methods to have empty implementations. |
|
void |
setOverride(ClassLoader override)
|
-
Inherited Methods Summary
-
-
Method Detail
-
public boolean getDebug()
-
public boolean getEmptyMethods()
-
public void setEmptyMethods(boolean emptyMethods)
Changes generated methods to have empty implementations.
Methods in generated aggregates not supplied in a closures map or
base class are given 'default' implementations. The implementation
will normally throw an UnsupportedOperationException
but setting this boolean will leave it empty.
- Parameters:
emptyMethods
- true if you want generated methods to be empty
Copyright © 2003-2017 The Apache Software Foundation. All rights reserved.