org.hibernate.boot.registry.StandardServiceRegistryBuilder#loadProperties org.hibernate.boot.registry.StandardServiceRegistryBuilder#applySetting org.hibernate.boot.registry.StandardServiceRegistryBuilder#applySettings org.hibernate.boot.registry.StandardServiceRegistryBuilder#configure | Modifier and Type | Class and Description |
|---|---|
| public static interface | ConfigurationService.Converter<
The Java type of the converted value T>Simple conversion contract for converting an untyped object to a specified type. |
| Modifier and Type | Method and Description |
|---|---|
| public < The java type of the expected return T> T | |
| public < The Java type of the conversion T> T | getSetting(String
The name of the setting to get. name, ConfigurationService.The converter to apply converterGet the named setting, using the specified converter. |
| public < The Java type of the conversion T> T | Returns: The converted (typed) setting. Will be the defaultValue if no such setting was defined.The name of the setting to get. name, ConfigurationService.The converter to apply converter,If no setting with that name is found, return this default value as the result. defaultValue)Get the named setting, using the specified converter and default value. |
| public < The Java type of the conversion T> T | Returns: The converted (typed) setting. Will be the defaultValue if no such setting was defined.The name of the setting to get. name, Class<T> The expected Java type. expected, T If no setting with that name is found, return this default value as the result. defaultValue)Get the named setting. |
| public Map | Returns: The immutable map of config settings.Access to the complete map of config settings. |
| cast | back to summary |
|---|---|
| public <T> T cast(Class<T> expected, Object candidate)
Deprecated No idea why this is exposed here... Cast candidate to the instance of expected type.
| |
| getSetting | back to summary |
|---|---|
| public <T> T getSetting(String name, ConfigurationService. Get the named setting, using the specified converter.
| |
| getSetting | back to summary |
|---|---|
| public <T> T getSetting(String name, ConfigurationService. Get the named setting, using the specified converter and default value.
| |
| getSetting | back to summary |
|---|---|
| public <T> T getSetting(String name, Class<T> expected, T defaultValue) Get the named setting. Differs from the form taking a Converter in that here we expect to have a simple cast rather than any involved conversion.
| |
| getSettings | back to summary |
|---|---|
| public Map Access to the complete map of config settings. The returned map is immutable
| |
| Modifier and Type | Method and Description |
|---|---|
| public T |
| convert | back to summary |
|---|---|
| public T convert(Object value) Convert an untyped Object reference to the Converter's type.
| |