Skip navigation links
Oracle Fusion Middleware Java API Reference for Oracle ADF Share
12c (12.2.1.3.0)

E80081-01
oracle.adfinternal.share.props

Class CacheConfigPropertyManager

    • Constructor Detail

      • CacheConfigPropertyManager

        public CacheConfigPropertyManager()
    • Method Detail

      • createCacheConfigPropertyManager

        public static CacheConfigPropertyManager createCacheConfigPropertyManager()
        Creates a new instance of this class
        Returns:
      • getCacheConfigPropertyManager

        public static CacheConfigPropertyManager getCacheConfigPropertyManager()
        Create CacheConfigPropertyManager instance and stores it in adf context application scope. Subsequent calls return the stored instance
        Returns:
        instance of this class
      • getCacheConfigPropertyManager

        public static CacheConfigPropertyManager getCacheConfigPropertyManager(ScopeMaps scMaps)
        Create CacheConfigPropertyManager instance and stores it in adf context application scope. Subsequent calls return the stored instance
        Returns:
        instance of this class
      • getProperty

        public java.lang.String getProperty(java.lang.String name)
        returns the property value for the specified key. For value look-up details, please see oracle.adf.share.props.CacheConfigPropertyManager
        Overrides:
        getProperty in class ConfigPropertyManager
        Parameters:
        name - the name of the property
        Returns:
        string value of the property
      • getIntegerProperty

        public java.lang.Integer getIntegerProperty(java.lang.String key)
        returns the property value for the specified key. For value look-up details, please see oracle.adf.share.props.CacheConfigPropertyManager the string value of the property is converted to Integer. For conversion Integer.valueOf(java.lang.String, int) operation is used. The converted value is cached so only the first call to this API takes the type conversion hit An ADFShareException is thrown if the conversion fails.
        Parameters:
        name - the name of the property
        Returns:
        Integer value of the property
        Throws:
        ADFShareException - if the type conversion fails
      • getBooleanProperty

        public java.lang.Boolean getBooleanProperty(java.lang.String key)
        returns the property value for the specified key. For value look-up details, please see oracle.adf.share.props.CacheConfigPropertyManager the string value of the property is converted to Boolean. For conversion Boolean.valueOf(boolean) operation is used. The converted value is cached so only the first call to this API takes the type conversion hit An ADFShareException is thrown if the conversion fails.
        Parameters:
        name - the name of the property
        Returns:
        Boolean value of the property
        Throws:
        ADFShareException - if the type conversion fails
      • setPropertyLocal

        protected void setPropertyLocal(java.lang.String key,
                                        java.lang.Object value,
                                        java.lang.String scope)
      • setProperty

        protected boolean setProperty(java.lang.String key,
                                      java.lang.Object value)
        Description copied from class: ConfigPropertyManager
        sets the specified property value. This API will delegate to the registered provider which may choose to ignore it The API is mainly used for writing tests
        Overrides:
        setProperty in class ConfigPropertyManager
        Parameters:
        key - the property key
        value - value of the property to be set.
        Returns:
        true if the operation was successfully performed, false otherwise
      • logCheckAndUpdate

        protected boolean logCheckAndUpdate(ADFLogger log,
                                            java.lang.String key,
                                            int max)
      • addPropertyChangeListener

        protected void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
        Add a PropertyChangeListener to the listener list. The listener is registered for all properties. The same listener object may be added more than once, and will be called as many times as it is added. If listener is null, no exception is thrown and no action is taken.
        Overrides:
        addPropertyChangeListener in class ConfigPropertyManager
        Parameters:
        listener - The PropertyChangeListener to be added
      • removePropertyChangeListener

        protected void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
        Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties. If listener was added more than once to the same event source, it will be notified one less time after being removed. If listener is null, or was never added, no exception is thrown and no action is taken.
        Overrides:
        removePropertyChangeListener in class ConfigPropertyManager
        Parameters:
        listener - The PropertyChangeListener to be removed
Oracle Fusion Middleware Java API Reference for Oracle ADF Share
12c (12.2.1.3.0)

E80081-01

Copyright © 1997, 2017, Oracle. All rights reserved.