Packageorg.spicefactory.parsley.properties
Classpublic class Properties
InheritanceProperties Inheritance Object

Static entry point methods for creating processors that load or parse properties to be added to a ContextBuilder.

Example:

                  ContextBuilder
     .newInstance()
     .config(Properties.forFile("config.properties"))
     .config(XmlConfig.forFile("config.xml"))
     .build();
               



Public Methods
 MethodDefined By
  
[static] Creates a processor that loads and processes a properties file.
Properties
  
[static] Creates a processor that adds the specified properties to the registry.
Properties
  
[static] Creates a processor that parses the specified string into properties.
Properties
Method Detail
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

Returns
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

Returns
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

Returns
ConfigurationProcessor — a processor that parses the specified string into properties