Interface ClassLoaderDecorator

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  ClassLoaderDecorator.Factory
      A factory for creating class loader decorators.
      static class  ClassLoaderDecorator.NoOp
      A no-operation implementation of a class loader decorator that always returns the same class loader without applying any decoration.
    • Method Detail

      • isSkipped

        boolean isSkipped​(TypeDescription typeDescription)
        Determines if a type should be skipped from class loader decoration.
        Parameters:
        typeDescription - The type description to check.
        Returns:
        true if the type should be skipped from decoration.
      • apply

        @MaybeNull
        java.lang.ClassLoader apply​(TypeDescription typeDescription)
        Applies this decorator to resolve a class loader for the given type.
        Parameters:
        typeDescription - The type description for which to resolve a class loader.
        Returns:
        The class loader to use for the given type or null for the bootstrap class loader.