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 TypeMethodDescriptionboolean
getOpenAPIFile
(boolean isProductionMode) int
hashCode()
static EngineConfiguration
Reads the configuration from the given file path.static EngineConfiguration
loadDirectory
(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
null
if 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
null
if 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
-