Class SunReflectiveCreator

  • All Implemented Interfaces:
    Creator

    @Deprecated
    public class SunReflectiveCreator
    extends ReflectiveCreator
    Deprecated.
    This creator is no longer used and will be removed in a future version.
    An object creator that uses methods only found in certain JVMs to create a new constructor if needed.
    • Constructor Detail

      • SunReflectiveCreator

        public SunReflectiveCreator()
        Deprecated.
    • Method Detail

      • getNewConstructor

        protected <T> Constructor<T> getNewConstructor​(Class<T> clazz)
        Deprecated.
        Get the constructor to use for a class. Returns null if no suitable constructor is available. This implementation will attempt to create a new constructor if one is not available.
        Overrides:
        getNewConstructor in class ReflectiveCreator
        Parameters:
        clazz - the class to get a constructor for
        Returns:
        the constructor, or null if none is available