| Modifier and Type | Class and Description |
|---|---|
| private static interface | |
| private static class | |
| public static class | ByteBuddyState.ProxyDefinitionHelpers
Shared proxy definition helpers. |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final TypeCache | |
| private final ByteBuddy | |
| private final ByteBuddyState. | |
| private static final boolean | |
| private static final CoreMessageLogger | |
| private final TypeCache | proxyCache
It will be easier to maintain the cache and its state when it will no longer be static in Hibernate ORM 6+. |
| private static final ByteBuddyState. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public ByteBuddyState. | Returns: The proxy definition helpers.Returns the proxy definition helpers to reuse when defining proxies. |
| public Class | |
| private Class | |
| pack-priv Class | Returns: The loaded proxy class.The main class to proxy - might be an interface. referenceClass, TypeCache.The cache key. cacheKey,A function building the proxy. makeProxyFunctionLoad a proxy as generated by the |
| public Class | Returns: The loaded proxy class.The main class to proxy - might be an interface. referenceClass, TypeCache.The cache key. cacheKey,A function building the proxy. makeProxyFunctionLoad a proxy as generated by the |
| public DynamicType. | |
| public DynamicType. | |
| private DynamicType. | |
| private DynamicType. | |
| public byte[] | Returns: The rewritten content of the class or null if rewriteClassFunction returns a null builder.the ByteBuddy TypePool typePool, String The original class name. className, Function<ByteBuddy, DynamicType.The function used to rewrite the class. rewriteClassFunctionRewrite a class, used by the enhancer. |
| basicProxyCache | back to summary |
|---|---|
| private final TypeCache<TypeCache. | |
| byteBuddy | back to summary |
|---|---|
| private final ByteBuddy byteBuddy | |
| classRewriter | back to summary |
|---|---|
| private final ByteBuddyState. | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| proxyCache | back to summary |
|---|---|
| private final TypeCache<TypeCache. It will be easier to maintain the cache and its state when it will no longer be static in Hibernate ORM 6+. Opted for WEAK keys to avoid leaking the classloader in case the SessionFactory isn't closed. Avoiding Soft keys as they are prone to cause issues with unstable performance. | |
| proxyDefinitionHelpers | back to summary |
|---|---|
| private static final ByteBuddyState. | |
| ByteBuddyState | back to summary |
|---|---|
| pack-priv ByteBuddyState() | |
| ByteBuddyState | back to summary |
|---|---|
| pack-priv ByteBuddyState(ClassFileVersion classFileVersion) | |
| clearState | back to summary |
|---|---|
| pack-priv void clearState() Wipes out all known caches used by ByteBuddy. This implies it might trigger the need to re-create some helpers if used at runtime, especially as this state might be shared by multiple SessionFactory instances, but at least ensures we cleanup anything which is no longer needed after a SessionFactory close. The assumption is that closing SessionFactories is a rare event; in this perspective the cost of re-creating the small helpers should be negligible. | |
| getProxyDefinitionHelpers | back to summary |
|---|---|
| public ByteBuddyState. Returns the proxy definition helpers to reuse when defining proxies. These elements are shared as they are immutable.
| |
| load | back to summary |
|---|---|
| public Class Load a class generated by ByteBuddy. | |
| load | back to summary |
|---|---|
| private Class | |
| loadBasicProxy | back to summary |
|---|---|
| pack-priv Class Load a proxy as generated by the | |
| loadProxy | back to summary |
|---|---|
| public Class Load a proxy as generated by the | |
| make | back to summary |
|---|---|
| public DynamicType. | |
| make | back to summary |
|---|---|
| public DynamicType. | |
| make | back to summary |
|---|---|
| private DynamicType. | |
| make | back to summary |
|---|---|
| private DynamicType. | |
| rewrite | back to summary |
|---|---|
| public byte[] rewrite(TypePool typePool, String className, Function<ByteBuddy, DynamicType. Rewrite a class, used by the enhancer. Warning Returns null if rewriteClassFunction returns a null builder. Do not use if you expect the original content.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| installReflectionMethodVisitors | back to summary |
|---|---|
| public void installReflectionMethodVisitors(DynamicType. | |
| registerAuthorizedClass | back to summary |
|---|---|
| public void registerAuthorizedClass(DynamicType. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final String | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Method |
| clazz | back to summary |
|---|---|
| private final Class<?> clazz | |
| methodName | back to summary |
|---|---|
| private final String methodName | |
| parameterTypes | back to summary |
|---|---|
| private final Class<?>[] parameterTypes | |
| GetDeclaredMethodAction | back to summary |
|---|---|
| private GetDeclaredMethodAction(Class<?> clazz, String methodName, Class<?>... parameterTypes) | |
| run | back to summary |
|---|---|
| public Method run() Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Modifier and Type | Field and Description |
|---|---|
| private final MethodDelegation | |
| private final ElementMatcher | |
| private final FieldAccessor. | |
| private final ElementMatcher | |
| private final ElementMatcher |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public MethodDelegation | |
| public ElementMatcher | |
| public FieldAccessor. | |
| public ElementMatcher | |
| public ElementMatcher |
| delegateToInterceptorDispatcherMethodDelegation | back to summary |
|---|---|
| private final MethodDelegation delegateToInterceptorDispatcherMethodDelegation | |
| groovyGetMetaClassFilter | back to summary |
|---|---|
| private final ElementMatcher<? super MethodDescription> groovyGetMetaClassFilter | |
| interceptorFieldAccessor | back to summary |
|---|---|
| private final FieldAccessor. | |
| proxyNonInterceptedMethodFilter | back to summary |
|---|---|
| private final ElementMatcher<? super MethodDescription> proxyNonInterceptedMethodFilter | |
| virtualNotFinalizerFilter | back to summary |
|---|---|
| private final ElementMatcher<? super MethodDescription> virtualNotFinalizerFilter | |
| ProxyDefinitionHelpers | back to summary |
|---|---|
| private ProxyDefinitionHelpers() | |
| getDelegateToInterceptorDispatcherMethodDelegation | back to summary |
|---|---|
| public MethodDelegation getDelegateToInterceptorDispatcherMethodDelegation() | |
| getGroovyGetMetaClassFilter | back to summary |
|---|---|
| public ElementMatcher | |
| getInterceptorFieldAccessor | back to summary |
|---|---|
| public FieldAccessor. | |
| getProxyNonInterceptedMethodFilter | back to summary |
|---|---|
| public ElementMatcher | |
| getVirtualNotFinalizerFilter | back to summary |
|---|---|
| public ElementMatcher | |
| Modifier and Type | Field and Description |
|---|---|
| private final AsmVisitorWrapper. | |
| private final AsmVisitorWrapper. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static AsmVisitorWrapper. | |
| private static AsmVisitorWrapper. | |
| public void | |
| public void |
| getDeclaredMethodMemberSubstitution | back to summary |
|---|---|
| private final AsmVisitorWrapper. | |
| getMethodMemberSubstitution | back to summary |
|---|---|
| private final AsmVisitorWrapper. | |
| SecurityManagerClassRewriter | back to summary |
|---|---|
| private SecurityManagerClassRewriter() | |
| getDeclaredMethodMemberSubstitution | back to summary |
|---|---|
| private static AsmVisitorWrapper. | |
| getMethodMemberSubstitution | back to summary |
|---|---|
| private static AsmVisitorWrapper. | |
| installReflectionMethodVisitors | back to summary |
|---|---|
| public void installReflectionMethodVisitors(DynamicType. Implements org.
| |
| registerAuthorizedClass | back to summary |
|---|---|
| public void registerAuthorizedClass(DynamicType. Implements org.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| StandardClassRewriter | back to summary |
|---|---|
| private StandardClassRewriter() | |
| installReflectionMethodVisitors | back to summary |
|---|---|
| public void installReflectionMethodVisitors(DynamicType. Implements org.
| |
| registerAuthorizedClass | back to summary |
|---|---|
| public void registerAuthorizedClass(DynamicType. Implements org.
| |