Package io.micronaut.projectgen.test
Class ConfigurationUtils
java.lang.Object
io.micronaut.projectgen.test.ConfigurationUtils
Utility class to load properties.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertiesloadApplicationProperties(Map<String, String> project) static PropertiesloadApplicationPropertiesByModule(Map<String, String> project, String module) static PropertiesloadBootstrapProperties(Map<String, String> project) static PropertiesloadBootstrapPropertiesByModule(Map<String, String> project, String module) static PropertiesloadDevProperties(Map<String, String> project) static PropertiesloadDevPropertiesByModule(Map<String, String> project, String module) static PropertiesloadPropertiesByPath(Map<String, String> project, String path)
-
Field Details
-
SRC_MAIN_RESOURCES_APPLICATION_PROPERTIES
- See Also:
-
SRC_MAIN_RESOURCES_BOOTSTRAP_PROPERTIES
- See Also:
-
SRC_MAIN_RESOURCES_APPLICATION_DEV_PROPERTIES
- See Also:
-
-
Method Details
-
loadApplicationProperties
- Parameters:
project- project preview- Returns:
- The project properties
- Throws:
Exception- Exception loading properties
-
loadDevPropertiesByModule
public static Properties loadDevPropertiesByModule(Map<String, String> project, String module) throws Exception- Parameters:
project- project previewmodule- module- Returns:
- dev properties
- Throws:
Exception- Exception loading dev properties
-
loadDevProperties
- Parameters:
project- project preview- Returns:
- dev properties
- Throws:
Exception- Exception loading dev properties
-
loadPropertiesByPath
public static Properties loadPropertiesByPath(Map<String, String> project, String path) throws Exception- Parameters:
project- project previewpath- Path- Returns:
- The project properties
- Throws:
Exception- Exception loading properties
-
loadApplicationPropertiesByModule
public static Properties loadApplicationPropertiesByModule(Map<String, String> project, String module) throws Exception- Parameters:
project- project previewmodule- module- Returns:
- The project properties
- Throws:
Exception- Exception loading properties
-
loadBootstrapProperties
- Parameters:
project- project preview- Returns:
- bootstrap properties
- Throws:
Exception- Exception loading bootstrap properties
-
loadBootstrapPropertiesByModule
public static Properties loadBootstrapPropertiesByModule(Map<String, String> project, String module) throws Exception- Parameters:
project- project previewmodule- module- Returns:
- bootstrap properties
- Throws:
Exception- Exception loading bootstrap properties
-