Class AbstractCommandSpecProcessor.NullFactory

    • Constructor Summary

      Constructors 
      Constructor Description
      NullFactory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <K> K create​(java.lang.Class<K> cls)
      Returns an instance of the specified class.
      • Methods inherited from class java.lang.Object

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

      • NullFactory

        NullFactory()
    • Method Detail

      • create

        public <K> K create​(java.lang.Class<K> cls)
                     throws java.lang.Exception
        Description copied from interface: CommandLine.IFactory
        Returns an instance of the specified class.
        Specified by:
        create in interface CommandLine.IFactory
        Type Parameters:
        K - the type of the object to return
        Parameters:
        cls - the class of the object to return
        Returns:
        the instance
        Throws:
        java.lang.Exception - an exception detailing what went wrong when creating or obtaining the instance