Package ome.system

Class Preference

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

    public class Preference
    extends java.lang.Object
    implements org.springframework.beans.factory.BeanNameAware
    Definition of a server configuration variable ("preference") along with its mutability, visibility, aliases and other important information. These preferences are defined in ome/config.xml along with the PreferenceContext, and the default values are defined in the etc/*.properties files which get stored in the final jars. For any configuration which does not have an explicit mapping, the default will be as if "new Preference()" is called. See the individual fields below for more information.
    Since:
    4.0
    See Also:
    #800
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Preference.Visibility  
    • Constructor Summary

      Constructors 
      Constructor Description
      Preference()
      By default, configures this instance for PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE as well as ignoring unfound resources.
      Preference​(java.lang.String beanName, boolean mutable, Preference.Visibility visibility, java.lang.String[] aliases)  
    • Constructor Detail

      • Preference

        public Preference()
        By default, configures this instance for PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE as well as ignoring unfound resources.
      • Preference

        public Preference​(java.lang.String beanName,
                          boolean mutable,
                          Preference.Visibility visibility,
                          java.lang.String[] aliases)
    • Method Detail

      • getName

        public java.lang.String getName()
      • setBeanName

        public void setBeanName​(java.lang.String beanName)
        Setter injector
        Specified by:
        setBeanName in interface org.springframework.beans.factory.BeanNameAware
      • setMutable

        public void setMutable​(boolean mutable)
        Setter injector
      • hasAlias

        public boolean hasAlias​(java.lang.String key)
      • setAliases

        public void setAliases​(java.lang.String[] aliases)
        Setter injector
      • isDb

        public boolean isDb()
      • setDb

        public void setDb​(boolean db)
        Setter injector
      • isPrefs

        public boolean isPrefs()
      • setPrefs

        public void setPrefs​(boolean prefs)