Class PublicReflectiveCreator

  • All Implemented Interfaces:
    Creator

    @Deprecated
    public class PublicReflectiveCreator
    extends Object
    implements Creator
    Deprecated.
    this class simply delegates to ReflectiveCreator.
    A creator that simply uses reflection to locate and invoke a public, zero-argument constructor.
    • Constructor Detail

      • PublicReflectiveCreator

        public PublicReflectiveCreator()
        Deprecated.
    • Method Detail

      • create

        public <T> T create​(Class<T> clazz)
                     throws 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:
        InvalidClassException - if an instance of the class could not be instantiated for some reason