Package ome.system
Class Preference
- java.lang.Object
-
- ome.system.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. Thesepreferences
are defined in ome/config.xml along with thePreferenceContext
, 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 forPropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE
as well as ignoring unfound resources.Preference(java.lang.String beanName, boolean mutable, Preference.Visibility visibility, java.lang.String[] aliases)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Preference.Visibility
getVisibility()
boolean
hasAlias(java.lang.String key)
boolean
isDb()
boolean
isPrefs()
void
setAliases(java.lang.String[] aliases)
Setter injectorvoid
setBeanName(java.lang.String beanName)
Setter injectorvoid
setDb(boolean db)
Setter injectorvoid
setMutable(boolean mutable)
Setter injectorvoid
setPrefs(boolean prefs)
void
setVisibility(Preference.Visibility visibility)
Setter injector
-
-
-
Constructor Detail
-
Preference
public Preference()
By default, configures this instance forPropertyPlaceholderConfigurer.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 interfaceorg.springframework.beans.factory.BeanNameAware
-
setMutable
public void setMutable(boolean mutable)
Setter injector
-
getVisibility
public Preference.Visibility getVisibility()
-
setVisibility
public void setVisibility(Preference.Visibility visibility)
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)
-
-