public class Preference
extends java.lang.Object
implements org.springframework.beans.factory.BeanNameAware
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.Modifier and Type | Class and Description |
---|---|
static class |
Preference.Visibility |
Constructor and 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) |
Modifier and Type | Method and 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 injector
|
void |
setBeanName(java.lang.String beanName)
Setter injector
|
void |
setDb(boolean db)
Setter injector
|
void |
setMutable(boolean mutable)
Setter injector
|
void |
setPrefs(boolean prefs) |
void |
setVisibility(Preference.Visibility visibility)
Setter injector
|
public Preference()
PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE
as
well as ignoring unfound resources.public Preference(java.lang.String beanName, boolean mutable, Preference.Visibility visibility, java.lang.String[] aliases)
public java.lang.String getName()
public void setBeanName(java.lang.String beanName)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public void setMutable(boolean mutable)
public Preference.Visibility getVisibility()
public void setVisibility(Preference.Visibility visibility)
public boolean hasAlias(java.lang.String key)
public void setAliases(java.lang.String[] aliases)
public boolean isDb()
public void setDb(boolean db)
public boolean isPrefs()
public void setPrefs(boolean prefs)
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.