Class AbstractPropertyConfig

  • All Implemented Interfaces:
    PropertyConfig
    Direct Known Subclasses:
    LdapConfig, LdapPoolConfig

    public abstract class AbstractPropertyConfig
    extends java.lang.Object
    implements PropertyConfig
    AbstractPropertyConfig provides a base implementation of PropertyConfig.
    Version:
    $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
    Author:
    Middleware Services
    • Field Detail

      • logger

        protected final org.apache.commons.logging.Log logger
        Log for this class.
    • Constructor Detail

      • AbstractPropertyConfig

        public AbstractPropertyConfig()
    • Method Detail

      • makeImmutable

        public void makeImmutable()
        Make this property config immutable.
      • checkImmutable

        public void checkImmutable()
        Verifies if this property config is immutable.
        Throws:
        java.lang.IllegalStateException - if this property config is immutable
      • getPropertiesDomain

        public abstract java.lang.String getPropertiesDomain()
        This returns the properties domain for this property config.
        Specified by:
        getPropertiesDomain in interface PropertyConfig
        Returns:
        String properties domain
      • setEnvironmentProperties

        public abstract void setEnvironmentProperties​(java.lang.String name,
                                                      java.lang.String value)
        This adds environment properties to this object. If name or value is null, then this method does nothing.
        Specified by:
        setEnvironmentProperties in interface PropertyConfig
        Parameters:
        name - String property name
        value - String property value
      • hasEnvironmentProperty

        public abstract boolean hasEnvironmentProperty​(java.lang.String name)
        This returns whether the supplied property exists.
        Specified by:
        hasEnvironmentProperty in interface PropertyConfig
        Parameters:
        name - String to check
        Returns:
        boolean whether the supplied property exists
      • checkStringInput

        protected void checkStringInput​(java.lang.String s,
                                        boolean allowNull)
        Verifies that a string is not null or empty.
        Parameters:
        s - to verify
        allowNull - whether null strings are valid
        Throws:
        java.lang.IllegalArgumentException - if the string is null or empty