Class CoreTypePool
java.lang.Object
net.bytebuddy.pool.TypePool.AbstractBase
org.hibernate.bytecode.enhance.internal.bytebuddy.CoreTypePool
- All Implemented Interfaces:
net.bytebuddy.pool.TypePool
public class CoreTypePool
extends net.bytebuddy.pool.TypePool.AbstractBase
implements net.bytebuddy.pool.TypePool
A TypePool which only loads, and caches, types whose package
name starts with certain chosen prefixes.
The default is to only load classes whose package names start with
either "jakarta." or "java.".
This allows to reuse these caches independently from application
code and classloader changes, as during enhancement we frequently
encounter such symbols as well, for example triggered by JPA annotations
or properties mapped via standard java types and collections.
Symbols resolved by this pool are backed by loaded classes from
ORM's classloader.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.pool.TypePool.AbstractBase
net.bytebuddy.pool.TypePool.AbstractBase.ArrayTypeResolution, net.bytebuddy.pool.TypePool.AbstractBase.ComponentTypeReference, net.bytebuddy.pool.TypePool.AbstractBase.Hierarchical
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool
net.bytebuddy.pool.TypePool.AbstractBase, net.bytebuddy.pool.TypePool.CacheProvider, net.bytebuddy.pool.TypePool.ClassLoading, net.bytebuddy.pool.TypePool.Default, net.bytebuddy.pool.TypePool.Empty, net.bytebuddy.pool.TypePool.Explicit, net.bytebuddy.pool.TypePool.LazyFacade, net.bytebuddy.pool.TypePool.Resolution
-
Field Summary
Fields inherited from class net.bytebuddy.pool.TypePool.AbstractBase
cacheProvider, PRIMITIVE_DESCRIPTORS, PRIMITIVE_TYPES
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a newCoreTypePool
with its default configuration.CoreTypePool
(String... acceptedPrefixes) Deprecated.used by QuarkusCoreTypePool
(CorePrefixFilter acceptedPrefixes) -
Method Summary
Modifier and TypeMethodDescriptionprotected net.bytebuddy.pool.TypePool.Resolution
doDescribe
(String name) Methods inherited from class net.bytebuddy.pool.TypePool.AbstractBase
clear, describe, doCache, equals, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.bytebuddy.pool.TypePool
clear, describe
-
Constructor Details
-
CoreTypePool
public CoreTypePool()Construct a newCoreTypePool
with its default configuration.- See Also:
-
CoreTypePool
Deprecated.used by QuarkusConstruct a newCoreTypePool
with a choice of which prefixes for fully qualified classnames will be loaded by thisTypePool
. -
CoreTypePool
-
-
Method Details
-
doDescribe
- Specified by:
doDescribe
in classnet.bytebuddy.pool.TypePool.AbstractBase
-