Class IConfig

  • Direct Known Subclasses:
    MemoryConfig, ResourceLoaderConfig

    public abstract class IConfig
    extends Object
    Base interface for all configuration implementations (filesystem, memory or classpath)
    • Constructor Detail

      • IConfig

        public IConfig()
    • Method Detail

      • setProperty

        public abstract void setProperty​(String name,
                                         String value)
      • getProperty

        public abstract String getProperty​(String name)
        Same semantic of Properties
        Parameters:
        name - property name.
        Returns:
        property value.
      • getProperty

        public abstract String getProperty​(String name,
                                           String defaultValue)
        Same semantic of Properties
        Parameters:
        name - property name.
        defaultValue - default value to return in case the property doesn't exists.
        Returns:
        property value.
      • intProp

        public int intProp​(String propertyName,
                           int defaultValue)
      • boolProp

        public boolean boolProp​(String propertyName,
                                boolean defaultValue)