Class ReflectionUtils

    • Method Detail

      • newInstance

        public static <T> T newInstance​(Class<T> theClass,
                                        Configuration conf)
        Deprecated.
        Create an object for the given class and initialize it from conf
        Parameters:
        theClass - class of which an object is created
        conf - Configuration
        Returns:
        a new object
      • setConf

        public static void setConf​(Object theObject,
                                   Configuration conf)
        Deprecated.
        Check and set 'configuration' if necessary.
        Parameters:
        theObject - object for which to set configuration
        conf - Configuration
      • copy

        public static <T> T copy​(Configuration conf,
                                 T src,
                                 T dst)
                          throws IOException
        Deprecated.
        Make a copy of the writable object using serialization to a buffer
        Parameters:
        dst - the object to copy from
        src - the object to copy into, which is destroyed
        Throws:
        IOException