Class PropertiesArgs

java.lang.Object
com.sampullara.cli.PropertiesArgs

public class PropertiesArgs extends Object
Created by IntelliJ IDEA. User: samp Date: Nov 11, 2007 Time: 3:42:27 PM
  • Constructor Details

    • PropertiesArgs

      public PropertiesArgs()
  • Method Details

    • parse

      public static void parse(Object target, Properties arguments)
      Parse properties instead of String arguments. Any additional arguments need to be passed some other way. This is often used in a second pass when the property filename is passed on the command line. Because of required properties you must be careful to set them all in the property file.
      Parameters:
      target - Either an instance or a class
      arguments - The properties that contain the arguments
    • processField

      private static void processField(Object target, Field field, Properties arguments)
    • processProperty

      private static void processProperty(Object target, PropertyDescriptor property, Properties arguments)