Class ClassLoaderDecorator.NoOp

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.ClassLoader classLoader
      The class loader to return for all type descriptions or null for the bootstrap class loader.
    • Constructor Summary

      Constructors 
      Constructor Description
      NoOp​(java.lang.ClassLoader classLoader)
      Creates a new no-operation class loader decorator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.ClassLoader apply​(TypeDescription typeDescription)
      Applies this decorator to resolve a class loader for the given type.
      boolean isSkipped​(TypeDescription typeDescription)
      Determines if a type should be skipped from class loader decoration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoOp

        public NoOp​(@MaybeNull
                    java.lang.ClassLoader classLoader)
        Creates a new no-operation class loader decorator.
        Parameters:
        classLoader - The class loader to return for all type descriptions or null for the bootstrap class loader.
    • Method Detail

      • isSkipped

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

        @MaybeNull
        public java.lang.ClassLoader apply​(TypeDescription typeDescription)
        Applies this decorator to resolve a class loader for the given type.
        Specified by:
        apply in interface ClassLoaderDecorator
        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.