Class SubclassInjectionLoader.WithLookup

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object codegenLookup  
      private java.lang.Object lookup  
      private java.lang.reflect.Method privateLookupIn  
    • Constructor Summary

      Constructors 
      Constructor Description
      WithLookup​(java.lang.Object lookup, java.lang.Object codegenLookup, java.lang.reflect.Method privateLookupIn)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      net.bytebuddy.dynamic.loading.ClassLoadingStrategy<java.lang.ClassLoader> resolveStrategy​(java.lang.Class<?> mockedType, java.lang.ClassLoader classLoader, boolean codegen)
      Resolves a class loading strategy.
      • Methods inherited from class java.lang.Object

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

      • lookup

        private final java.lang.Object lookup
      • codegenLookup

        private final java.lang.Object codegenLookup
      • privateLookupIn

        private final java.lang.reflect.Method privateLookupIn
    • Constructor Detail

      • WithLookup

        WithLookup​(java.lang.Object lookup,
                   java.lang.Object codegenLookup,
                   java.lang.reflect.Method privateLookupIn)
    • Method Detail

      • resolveStrategy

        public net.bytebuddy.dynamic.loading.ClassLoadingStrategy<java.lang.ClassLoader> resolveStrategy​(java.lang.Class<?> mockedType,
                                                                                                         java.lang.ClassLoader classLoader,
                                                                                                         boolean codegen)
        Description copied from interface: SubclassLoader
        Resolves a class loading strategy.
        Specified by:
        resolveStrategy in interface SubclassLoader
        Parameters:
        mockedType - The type being mocked.
        classLoader - The class loader being used.
        codegen - true if the mock is loaded in the org.mockito.codegen package.
        Returns:
        An appropriate class loading strategy.