Class PropertyListParameterDecoder

  • All Implemented Interfaces:
    ContentHandler

    public class PropertyListParameterDecoder
    extends ParameterDecoder<String>
    ParameterDecoder used to convert a parameter String value to a list of Properties.

    This decoder is pre-installed.

    Example Usage

            <param name="magic-properties-param" type="properties">
     x=11111
     y=22222
     z=33333
     </param>
     
     

    The code for accessing this parameter value:

     Parameter param = resourceConfig.getParameter("magic-properties-param");
     Properties properties = (Properties)param.getValue();
     

    Note, we will make this filter easier in the next release. You'll be able to call a method such as "getDecodedParameter" on the ResourceConfig, returning a decoded parameter Object.

    Author:
    tfennelly
    See Also:
    ResourceConfig