org.hibernate.service.config.spi
Interface ConfigurationService
- All Superinterfaces:
- Serializable, Service
- All Known Implementing Classes:
- ConfigurationServiceImpl
public interface ConfigurationService
- extends Service
Provides access to the initial user-provided configuration values
getSettings
Map getSettings()
getSetting
<T> T getSetting(String name,
ConfigurationService.Converter<T> converter)
getSetting
<T> T getSetting(String name,
ConfigurationService.Converter<T> converter,
T defaultValue)
getSetting
<T> T getSetting(String name,
Class<T> expected,
T defaultValue)
cast
<T> T cast(Class<T> expected,
Object candidate)
- Cast candidate to the instance of expected type.
- Parameters:
expected
- The type of instance expected to return.candidate
- The candidate object to be casted.
- Returns:
- The instance of expected type or null if this cast fail.
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.