Class ReflectiveCreator

  • All Implemented Interfaces:
    Creator
    Direct Known Subclasses:
    SunReflectiveCreator

    @Deprecated
    public class ReflectiveCreator
    extends java.lang.Object
    implements Creator
    Deprecated.
    This class is no longer used and will be removed in a future version.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReflectiveCreator()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      <T> T create​(java.lang.Class<T> clazz)
      Deprecated.
      Create an object instance.
      protected <T> java.lang.reflect.Constructor<T> getNewConstructor​(java.lang.Class<T> clazz)
      Deprecated.
      Get the constructor to use for a class.
      • Methods inherited from class java.lang.Object

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

      • CREATOR_PERM

        private static final java.security.Permission CREATOR_PERM
        Deprecated.
    • Constructor Detail

      • ReflectiveCreator

        public ReflectiveCreator()
        Deprecated.
    • Method Detail

      • getNewConstructor

        protected <T> java.lang.reflect.Constructor<T> getNewConstructor​(java.lang.Class<T> clazz)
        Deprecated.
        Get the constructor to use for a class. Returns null if no suitable constructor is available.
        Parameters:
        clazz - the class to get a constructor for
        Returns:
        the constructor, or null if none is available
      • create

        public <T> T create​(java.lang.Class<T> clazz)
                     throws java.io.InvalidClassException
        Deprecated.
        Create an object instance.
        Specified by:
        create in interface Creator
        Parameters:
        clazz - the type of object to create
        Returns:
        the object instance
        Throws:
        java.io.InvalidClassException - if an instance of the class could not be instantiated for some reason