Java org.springframework.cglib.proxy Enhancer fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.cglib.proxy Enhancer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.cglib.proxy Enhancer.

The text is from its open source code.

Constructor

Enhancer()
Create a new Enhancer.

Method

Objectcreate()
Generate a new class if necessary and uses the specified callbacks (if any) to create a new object instance.
Objectcreate(Class[] argumentTypes, Object[] arguments)
Generate a new class if necessary and uses the specified callbacks (if any) to create a new object instance.
Objectcreate(Class type, Callback callback)
Helper method to create an intercepted object.
Objectcreate(Class superclass, Class interfaces[], Callback callback)
Helper method to create an intercepted object.
ClasscreateClass()
Generate a new class if necessary and return it without creating a new instance.
booleangetUseCache()
booleanisEnhanced(Class type)
Determine if a class was generated using Enhancer.
voidregisterCallbacks(Class generatedClass, Callback[] callbacks)
Call this method to register the Callback array to use before creating a new instance of the generated class via reflection.
voidregisterStaticCallbacks(Class generatedClass, Callback[] callbacks)
Similar to #registerCallbacks , but suitable for use when multiple threads will be creating instances of the generated class.
voidsetCallback(final Callback callback)
Set the single Callback to use.
voidsetCallbackFilter(CallbackFilter filter)
Set the CallbackFilter used to map the generated class' methods to a particular callback index.
voidsetCallbacks(Callback[] callbacks)
Set the array of callbacks to use.
voidsetCallbackType(Class callbackType)
Set the single type of Callback to use.
voidsetCallbackTypes(Class[] callbackTypes)
Set the array of callback types to use.
voidsetClassLoader(ClassLoader classLoader)
Set the ClassLoader in which the class will be generated.
voidsetInterceptDuringConstruction(boolean interceptDuringConstruction)
Set whether methods called from within the proxy's constructer will be intercepted.
voidsetInterfaces(Class[] interfaces)
Set the interfaces to implement.
voidsetNamingPolicy(NamingPolicy namingPolicy)
Override the default naming policy.
voidsetStrategy(GeneratorStrategy strategy)
Set the strategy to use to create the bytecode from this generator.
voidsetSuperclass(Class superclass)
Set the class which the generated class will extend.
voidsetUseCache(boolean useCache)
Whether use and update the static cache of generated classes for a class with the same properties.
voidsetUseFactory(boolean useFactory)
Set whether the enhanced object instances should implement the Factory interface.