Package ratpack.config
Interface ConfigSource
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ConfigSource
Allows providing custom sources of configuration data.- See Also:
ConfigDataBuilder.add(ConfigSource)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectNode
loadConfigData(ObjectMapper objectMapper, FileSystemBinding fileSystemBinding)
Loads the configuration data from this data source.
-
-
-
Method Detail
-
loadConfigData
ObjectNode loadConfigData(ObjectMapper objectMapper, FileSystemBinding fileSystemBinding) throws Exception
Loads the configuration data from this data source.- Parameters:
fileSystemBinding
- the file system view the config source must use to find filesobjectMapper
- the Jackson ObjectMapper to use to build objects- Returns:
- the root node of the configuration data loaded
- Throws:
Exception
- any
-
-