Package com.sampullara.cli
Class PropertiesArgs
java.lang.Object
com.sampullara.cli.PropertiesArgs
Created by IntelliJ IDEA.
User: samp
Date: Nov 11, 2007
Time: 3:42:27 PM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidparse(Object target, Properties arguments) Parse properties instead of String arguments.private static voidprocessField(Object target, Field field, Properties arguments) private static voidprocessProperty(Object target, PropertyDescriptor property, Properties arguments)
-
Constructor Details
-
PropertiesArgs
public PropertiesArgs()
-
-
Method Details
-
parse
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 classarguments- The properties that contain the arguments
-
processField
-
processProperty
private static void processProperty(Object target, PropertyDescriptor property, Properties arguments)
-