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

    Constructors
    Constructor
    Description
    Construct a new CoreTypePool with its default configuration.
    CoreTypePool(String... acceptedPrefixes)
    Deprecated.
    used by Quarkus
    CoreTypePool(CorePrefixFilter acceptedPrefixes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected net.bytebuddy.pool.TypePool.Resolution
     

    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 new CoreTypePool with its default configuration.
      See Also:
    • CoreTypePool

      @Deprecated public CoreTypePool(String... acceptedPrefixes)
      Deprecated.
      used by Quarkus
      Construct a new CoreTypePool with a choice of which prefixes for fully qualified classnames will be loaded by this TypePool.
    • CoreTypePool

      public CoreTypePool(CorePrefixFilter acceptedPrefixes)
  • Method Details

    • doDescribe

      protected net.bytebuddy.pool.TypePool.Resolution doDescribe(String name)
      Specified by:
      doDescribe in class net.bytebuddy.pool.TypePool.AbstractBase