Package com.vaadin.hilla.engine
Class EngineConfiguration
java.lang.Object
com.vaadin.hilla.engine.EngineConfiguration
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleangetOpenAPIFile(boolean isProductionMode) inthashCode()static EngineConfigurationReads the configuration from the given file path.static EngineConfigurationloadDirectory(Path configDir) Reads the configuration from the given base directory.void
-
Field Details
-
DEFAULT_CONFIG_FILE_NAME
- See Also:
-
OPEN_API_PATH
- See Also:
-
-
Method Details
-
loadDirectory
Reads the configuration from the given base directory. Reads only files with the default name.- Parameters:
configDir- a directory that contains the configuration file.- Returns:
- the configuration, or
nullif the configuration file does not exist - Throws:
IOException- if thrown while reading the configuration fileConfigurationException- if the configuration file is invalid
-
load
Reads the configuration from the given file path.- Parameters:
configFile- a path to a configuration file.- Returns:
- the configuration, or
nullif the configuration file does not exist - Throws:
IOException- if thrown while reading the configuration fileConfigurationException- if the configuration file is invalid
-
equals
-
getBaseDir
-
getBuildDir
-
getClassPath
-
getClassesDir
-
getGenerator
-
getOutputDir
-
getParser
-
hashCode
public int hashCode() -
store
- Throws:
IOException
-
getOpenAPIFile
-