| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuddyProxyHelper | |
| private final ByteBuddyState | |
| private static final ElementMatcher. | |
| private static final ElementMatcher. | |
| private static final String | |
| private static final ElementMatcher. | |
| private static final String | |
| private static final ElementMatcher. |
| Access | Constructor and Description |
|---|---|
| public | BytecodeProviderImpl()
Constructs a ByteBuddy BytecodeProvider instance which attempts to auto-detect the target JVM version from the currently running one, with a fallback on Java 8. |
| public | BytecodeProviderImpl(ClassFileVersion targetCompatibleJVM)
Constructs a ByteBuddy BytecodeProvider instance which aims to produce code compatible with the specified target JVM version. |
| Modifier and Type | Method and Description |
|---|---|
| private static Method | |
| private static void | |
| private static Constructor | |
| public ByteBuddyProxyHelper | |
| public Enhancer | getEnhancer(EnhancementContext
The enhancement context that describes the enhancements to apply. enhancementContext)Implements org. |
| public ProxyFactoryFactory | getProxyFactoryFactory()
Implements org. |
| public ReflectionOptimizer | getReflectionOptimizer(final Class<T>
The class to be reflected upon. clazz, final String[] Names of all property getters to be accessed via reflection. getterNames, final String[] Names of all property setters to be accessed via reflection. setterNames, final Class<T>[] The types of all properties to be accessed. types)Implements org. |
| public void | resetCaches()
Overrides default org. |
| byteBuddyProxyHelper | back to summary |
|---|---|
| private final ByteBuddyProxyHelper byteBuddyProxyHelper | |
| byteBuddyState | back to summary |
|---|---|
| private final ByteBuddyState byteBuddyState | |
| getPropertyNamesMethodName | back to summary |
|---|---|
| private static final ElementMatcher. | |
| getPropertyValuesMethodName | back to summary |
|---|---|
| private static final ElementMatcher. | |
| INSTANTIATOR_PROXY_NAMING_SUFFIX | back to summary |
|---|---|
| private static final String INSTANTIATOR_PROXY_NAMING_SUFFIX | |
| newInstanceMethodName | back to summary |
|---|---|
| private static final ElementMatcher. | |
| OPTIMIZER_PROXY_NAMING_SUFFIX | back to summary |
|---|---|
| private static final String OPTIMIZER_PROXY_NAMING_SUFFIX | |
| setPropertyValuesMethodName | back to summary |
|---|---|
| private static final ElementMatcher. | |
| BytecodeProviderImpl | back to summary |
|---|---|
| public BytecodeProviderImpl() Constructs a ByteBuddy BytecodeProvider instance which attempts to auto-detect the target JVM version from the currently running one, with a fallback on Java 8. | |
| BytecodeProviderImpl | back to summary |
|---|---|
| public BytecodeProviderImpl(ClassFileVersion targetCompatibleJVM) Constructs a ByteBuddy BytecodeProvider instance which aims to produce code compatible with the specified target JVM version. | |
| findAccessor | back to summary |
|---|---|
private static Method findAccessor(Class<T> clazz, String name, Class<T>[] params, int index) throws BulkAccessorException
| |
| findAccessors | back to summary |
|---|---|
| private static void findAccessors(Class<T> clazz, String[] getterNames, String[] setterNames, Class<T>[] types, Method[] getters, Method[] setters) | |
| findConstructor | back to summary |
|---|---|
| private static Constructor | |
| getByteBuddyProxyHelper | back to summary |
|---|---|
| public ByteBuddyProxyHelper getByteBuddyProxyHelper() | |
| getEnhancer | back to summary |
|---|---|
| public Enhancer getEnhancer(EnhancementContext enhancementContext) Implements org. Doc from org. Returns a byte code enhancer that implements the enhancements described in the supplied enhancement context.
| |
| getProxyFactoryFactory | back to summary |
|---|---|
| public ProxyFactoryFactory getProxyFactoryFactory() Implements org. Doc from org. Retrieve the specific factory for this provider capable of generating run-time proxies for lazy-loading purposes.
| |
| getReflectionOptimizer | back to summary |
|---|---|
| public ReflectionOptimizer getReflectionOptimizer(final Class<T> clazz, final String[] getterNames, final String[] setterNames, final Class<T>[] types) Implements org. Doc from org. Retrieve the ReflectionOptimizer delegate for this provider capable of generating reflection optimization components.
| |
| resetCaches | back to summary |
|---|---|
| public void resetCaches() Overrides default org. Doc from org. Some BytecodeProvider implementations will have classloader specific caching. These caches are useful at runtime but need to be reset at least on SessionFactory shutdown to prevent leaking the deployment classloader. Since the BytecodeProvider is static these caches are potentially shared across multiple deployments; in this case we'll clear all caches which might show as a small, temporary performance degradation on the SessionFactory instances which haven't been closed. This limitation will be removed in the future, when these providers will no longer be static.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | call()
Implements java. |
| propertyNames | back to summary |
|---|---|
| private final String[] propertyNames | |
| CloningPropertyCall | back to summary |
|---|---|
| private CloningPropertyCall(String[] propertyNames) | |
| call | back to summary |
|---|---|
| public String[] call() Implements java. Doc from java. Computes a result, or throws an exception if unable to do so. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ByteCodeAppender. | apply(MethodVisitor
The method visitor to which the byte code appender writes its code to. methodVisitor, Implementation.The implementation context of the current type creation process. implementationContext,The method that is the target of the instrumentation. instrumentedMethod)Implements net. |
| clazz | back to summary |
|---|---|
| private final Class<T> clazz | |
| getters | back to summary |
|---|---|
| private final Method[] getters | |
| GetPropertyValues | back to summary |
|---|---|
| public GetPropertyValues(Class<T> clazz, Method[] getters) | |
| apply | back to summary |
|---|---|
| public ByteCodeAppender. Implements net. Doc from net. Applies this byte code appender to a type creation process.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ByteCodeAppender. | apply(MethodVisitor
The method visitor to which the byte code appender writes its code to. methodVisitor, Implementation.The implementation context of the current type creation process. implementationContext,The method that is the target of the instrumentation. instrumentedMethod)Implements net. |
| clazz | back to summary |
|---|---|
| private final Class<T> clazz | |
| setters | back to summary |
|---|---|
| private final Method[] setters | |
| SetPropertyValues | back to summary |
|---|---|
| public SetPropertyValues(Class<T> clazz, Method[] setters) | |
| apply | back to summary |
|---|---|
| public ByteCodeAppender. Implements net. Doc from net. Applies this byte code appender to a type creation process.
| |