Class ManifoldCFConfiguration

    • Field Detail

      • localProperties

        protected final java.util.Map<java.lang.String,​java.lang.String> localProperties
    • Constructor Detail

      • ManifoldCFConfiguration

        public ManifoldCFConfiguration()
        Constructor.
      • ManifoldCFConfiguration

        public ManifoldCFConfiguration​(java.io.InputStream xmlStream)
                                throws ManifoldCFException
        Construct from XML.
        Parameters:
        xmlStream - is the input XML stream.
        Throws:
        ManifoldCFException
    • Method Detail

      • getProperty

        public java.lang.String getProperty​(java.lang.String s)
      • getStringProperty

        public java.lang.String getStringProperty​(java.lang.String s,
                                                  java.lang.String defaultValue)
        Read a (string) property, either from the system properties, or from the local configuration file.
        Parameters:
        s - is the property name.
        defaultValue - is the default value for the property.
        Returns:
        the property value, as a string.
      • getPossiblyObfuscatedStringProperty

        public java.lang.String getPossiblyObfuscatedStringProperty​(java.lang.String s,
                                                                    java.lang.String defaultValue)
                                                             throws ManifoldCFException
        Read a possibly obfuscated string property, either from the system properties, or from the local configuration file.
        Parameters:
        s - is the property name.
        defaultValue - is the default value for the property.
        Returns:
        the property value, as a string.
        Throws:
        ManifoldCFException
      • getIntProperty

        public int getIntProperty​(java.lang.String s,
                                  int defaultValue)
                           throws ManifoldCFException
        Read an integer property, either from the system properties, or from the local configuration file.
        Throws:
        ManifoldCFException
      • getLongProperty

        public long getLongProperty​(java.lang.String s,
                                    long defaultValue)
                             throws ManifoldCFException
        Read a long property, either from the system properties, or from the local configuration file.
        Throws:
        ManifoldCFException
      • getDoubleProperty

        public double getDoubleProperty​(java.lang.String s,
                                        double defaultValue)
                                 throws ManifoldCFException
        Read a float property, either from the system properties, or from the local configuration file.
        Throws:
        ManifoldCFException
      • createNew

        protected Configuration createNew()
        Create a new object of the appropriate class.
        Overrides:
        createNew in class Configuration
        Returns:
        the newly-created configuration object.