Package jade

Class BootProfileImpl


  • public class BootProfileImpl
    extends ProfileImpl
    A profile implementation enhanced to support boot's argument parsing. This class serves as the bridge between boot properties and profile properties. It defines a collection of property keys which correspond to boot argument names. These are used to access the boot properties from the argument properties. The class Profile defines a similar collection of keys which are used to access profile properties.
    Version:
    $Date$ $Revision$
    Author:
    Dick Cowan - HP Labs
    • Constructor Detail

      • BootProfileImpl

        public BootProfileImpl()
        Construct default profile with empty argument properties
    • Method Detail

      • getArgProperties

        public ExtendedProperties getArgProperties()
        Return the properties collection which resulted from the arguments. This collection is used to create/modify the underlying profile's properties.
        Returns:
        ExtendedProperties The argument property collection.
      • setArgProperties

        public void setArgProperties​(ExtendedProperties source)
        Copy a collection of argument properties into the existing argument properties and then into the profile properties. When moving between the argument properties and profile properties different keys are required.
        Parameters:
        source - A collection of argument properties. The keys to this collection are from the XXX_KEY strings defined in this class.
      • fetchAndVerifyBoolean

        protected boolean fetchAndVerifyBoolean​(String aKey)
                                         throws PropertiesException
        Fetch and verify a boolean attribute.
        Parameters:
        aKey - The property key to check.
        Returns:
        True or false depending on the attributes setting. False if attribute doesn't exist.
        Throws:
        PropertiesException - if there is a value but its not either "true" or "false".
      • parseSpecifiers

        public List parseSpecifiers​(String str)
                             throws PropertiesException
        Parse a String reading for a set of parameter(arg) each delimited by a ; and no space in between.

        For instance jade.mtp.iiop(50);http.mtp.http(8080) is a valid string, while jade.mtp.iiop(50 80);http.mtp.http(8080) is not valid For each object specifier, a new java object Specifier is added to the passed out List parameter.

        Throws:
        PropertiesException