Package | org.spicefactory.parsley.properties |
Class | public class Properties |
Inheritance | Properties Object |
Example:
ContextBuilder
.newInstance()
.config(Properties.forFile("config.properties"))
.config(XmlConfig.forFile("config.xml"))
.build();
Method | Defined By | ||
---|---|---|---|
forFile(file:String):ConfigurationProcessor [static]
Creates a processor that loads and processes a properties file. | Properties | ||
forObject(object:Object):ConfigurationProcessor [static]
Creates a processor that adds the specified properties to the registry. | Properties | ||
forString(string:String):ConfigurationProcessor [static]
Creates a processor that parses the specified string into properties. | Properties |
forFile | () | method |
public static function forFile(file:String):ConfigurationProcessor
Creates a processor that loads and processes a properties file.
Parameters
file:String — the name of the file
|
ConfigurationProcessor — a processor that loads and processes a properties file
|
forObject | () | method |
public static function forObject(object:Object):ConfigurationProcessor
Creates a processor that adds the specified properties to the registry. The properties of the provided objects will be used as name/value pairs.
Parameters
object:Object — the object holding the property names and values
|
ConfigurationProcessor — a processor that adds the specified properties to the registry
|
forString | () | method |
public static function forString(string:String):ConfigurationProcessor
Creates a processor that parses the specified string into properties. The supported syntax is the same as for loaded files.
Parameters
string:String — the string to parse
|
ConfigurationProcessor — a processor that parses the specified string into properties
|