public class Configuration extends PropertyStore implements Serializable
frequentProperties, properties
Constructor and Description |
---|
Configuration(NucleusContext nucCtx)
Create a configuration object for the specified NucleusContext.
|
Modifier and Type | Method and Description |
---|---|
void |
addDefaultBooleanProperty(String name,
String internalName,
Boolean value,
boolean datastore,
boolean managerOverrideable) |
void |
addDefaultIntegerProperty(String name,
String internalName,
Integer value,
boolean datastore,
boolean managerOverrideable) |
void |
addDefaultProperty(String name,
String internalName,
String value,
String validatorName,
boolean datastore,
boolean managerOverrideable) |
boolean |
equals(Object obj) |
String |
getCaseSensitiveNameForPropertyName(String propName) |
Map<String,Object> |
getDatastoreProperties()
Convenience method to return all properties that are user-specified and should be specified on the StoreManager.
|
String |
getInternalNameForProperty(String name) |
Set<String> |
getManagedOverrideablePropertyNames()
Returns the names of the properties that are manager overrideable (using their original cases, not lowercase).
|
Map<String,Object> |
getManagerOverrideableProperties()
Convenience method to return all properties that are overrideable on the PM/EM.
|
Map<String,Object> |
getPersistenceProperties()
Accessor for the persistence properties.
|
Map<String,Object> |
getPersistencePropertiesDefaults()
Accessor for the persistence properties default values.
|
Object |
getProperty(String name)
Accessor for the specified property as an Object.
|
Set<String> |
getPropertyNamesWithPrefix(String prefix) |
String |
getPropertyNameWithInternalPropertyName(String propName,
String propPrefix) |
Set<String> |
getSupportedProperties()
Accessor for the names of the supported persistence properties.
|
protected Object |
getValueForPropertyWithValidator(String value,
String validatorName) |
int |
hashCode() |
boolean |
hasProperty(String name)
Accessor for whether a particular property is defined (but may be null).
|
void |
removeDatastoreProperties()
Method that removes all properties from this store that are marked as "datastore".
|
void |
setDefaultProperties(Map props)
Method to set the persistence property defaults based on what is defined for plugins.
|
void |
setPersistenceProperties(Map props)
Set the properties for this configuration.
|
void |
setPropertiesUsingFile(String filename)
Method to set the persistence properties using those defined in a file.
|
void |
setProperty(String name,
Object value)
Convenience method to set a persistence property.
|
void |
validatePropertyValue(String name,
Object value) |
getBooleanObjectProperty, getBooleanProperty, getBooleanProperty, getFrequentProperties, getIntProperty, getStringProperty, hasPropertyNotNull, setPropertyInternal
public Configuration(NucleusContext nucCtx)
nucCtx
- NucleusContextpublic Set<String> getSupportedProperties()
public Map<String,Object> getDatastoreProperties()
public void removeDatastoreProperties()
public Map<String,Object> getManagerOverrideableProperties()
public Set<String> getManagedOverrideablePropertyNames()
public String getPropertyNameWithInternalPropertyName(String propName, String propPrefix)
public String getCaseSensitiveNameForPropertyName(String propName)
public void setDefaultProperties(Map props)
props
- Properties to use in the default setpublic void addDefaultBooleanProperty(String name, String internalName, Boolean value, boolean datastore, boolean managerOverrideable)
public void addDefaultIntegerProperty(String name, String internalName, Integer value, boolean datastore, boolean managerOverrideable)
public void addDefaultProperty(String name, String internalName, String value, String validatorName, boolean datastore, boolean managerOverrideable)
protected Object getValueForPropertyWithValidator(String value, String validatorName)
public boolean hasProperty(String name)
PropertyStore
hasProperty
in class PropertyStore
name
- Property namepublic Object getProperty(String name)
getProperty
in class PropertyStore
name
- Name of the propertypublic void setPropertiesUsingFile(String filename)
filename
- Name of the file containing the propertiespublic Map<String,Object> getPersistencePropertiesDefaults()
public Map<String,Object> getPersistenceProperties()
getPersistenceProperties()
public void setPersistenceProperties(Map props)
props
- The persistence propertiesgetPersistencePropertiesDefaults()
public void setProperty(String name, Object value)
name
- Name of the propertyvalue
- ValueCopyright © 2017. All rights reserved.