Class ReflectionSupportFacade


  • @API(status=INTERNAL)
    public abstract class ReflectionSupportFacade
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract <T> T newInstanceInTestContext​(java.lang.Class<T> clazz, java.lang.Object context)
      Create instance of a class that can potentially be a non static inner class and its outer instance might be context
      • Methods inherited from class java.lang.Object

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

      • ReflectionSupportFacade

        public ReflectionSupportFacade()
    • Method Detail

      • newInstanceInTestContext

        public abstract <T> T newInstanceInTestContext​(java.lang.Class<T> clazz,
                                                       java.lang.Object context)
        Create instance of a class that can potentially be a non static inner class and its outer instance might be context
        Type Parameters:
        T - The type of the instance to create
        Parameters:
        clazz - The class to instantiate
        context - The potential context instance
        Returns:
        the newly created instance