Class TypePool.AbstractBase.Hierarchical

java.lang.Object
net.bytebuddy.pool.TypePool.AbstractBase
net.bytebuddy.pool.TypePool.AbstractBase.Hierarchical
All Implemented Interfaces:
TypePool
Direct Known Subclasses:
TypePool.ClassLoading, TypePool.Default, TypePool.Explicit
Enclosing class:
TypePool.AbstractBase

@Enhance public abstract static class TypePool.AbstractBase.Hierarchical extends TypePool.AbstractBase
Implements a hierarchical view of type pools, similarly to class loader hierarchies. For every lookup, the parent type pool is asked first if it can resolve a type. Only if the parent (and potentially its parents) are unable to resolve a type, this instance is queried for a type description.
  • Field Details

    • parent

      private final TypePool parent
      The parent type pool.
  • Constructor Details

    • Hierarchical

      protected Hierarchical(TypePool.CacheProvider cacheProvider, TypePool parent)
      Creates a hierarchical type pool.
      Parameters:
      cacheProvider - The cache provider to be used.
      parent - The parent type pool to be used.
  • Method Details