Class Layers
java.lang.Object
org.springframework.boot.maven.Layers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable FileThe location of the layers configuration file.@Nullable StringThe name of the layers configuration to load from the classpath.booleanWhether alayers.idxfile should be added to the jar.voidsetConfiguration(@Nullable File configuration) voidsetConfigurationName(@Nullable String configurationName)
-
Constructor Details
-
Layers
public Layers()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether alayers.idxfile should be added to the jar.- Returns:
- true if a
layers.idxfile should be added.
-
getConfiguration
The location of the layers configuration file. If no file is provided, a default configuration is used with four layers:application,resources,snapshot-dependenciesanddependencies.- Returns:
- the layers configuration file
-
setConfiguration
-
getConfigurationName
The name of the layers configuration to load from the classpath. A matching file is expected atMETA-INF/spring/layers/<name>.xml- Returns:
- the layers configuration name to load from the classpath
-
setConfigurationName
-