public class BytecodeProviderImpl extends Object implements BytecodeProvider
Modifier and Type | Class and Description |
---|---|
static class |
BytecodeProviderImpl.CloningPropertyCall |
Constructor and Description |
---|
BytecodeProviderImpl() |
Modifier and Type | Method and Description |
---|---|
ByteBuddyProxyHelper |
getByteBuddyProxyHelper() |
Enhancer |
getEnhancer(EnhancementContext enhancementContext)
Returns a byte code enhancer that implements the enhancements described in the supplied enhancement context.
|
ProxyFactoryFactory |
getProxyFactoryFactory()
Retrieve the specific factory for this provider capable of
generating run-time proxies for lazy-loading purposes.
|
ReflectionOptimizer |
getReflectionOptimizer(Class clazz,
String[] getterNames,
String[] setterNames,
Class[] types)
Retrieve the ReflectionOptimizer delegate for this provider
capable of generating reflection optimization components.
|
void |
resetCaches()
Some BytecodeProvider implementations will have classloader specific caching.
|
public ProxyFactoryFactory getProxyFactoryFactory()
BytecodeProvider
getProxyFactoryFactory
in interface BytecodeProvider
public ReflectionOptimizer getReflectionOptimizer(Class clazz, String[] getterNames, String[] setterNames, Class[] types)
BytecodeProvider
getReflectionOptimizer
in interface BytecodeProvider
clazz
- The class to be reflected upon.getterNames
- Names of all property getters to be accessed via reflection.setterNames
- Names of all property setters to be accessed via reflection.types
- The types of all properties to be accessed.public ByteBuddyProxyHelper getByteBuddyProxyHelper()
public Enhancer getEnhancer(EnhancementContext enhancementContext)
BytecodeProvider
getEnhancer
in interface BytecodeProvider
enhancementContext
- The enhancement context that describes the enhancements to apply.public void resetCaches()
BytecodeProvider
resetCaches
in interface BytecodeProvider
Copyright © 2019 JBoss by Red Hat. All rights reserved.