Package org.seedstack.seed
Class ApplicationConfig
- java.lang.Object
-
- org.seedstack.seed.ApplicationConfig
-
@Config("application") public class ApplicationConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicationConfig.ColorOutput
-
Constructor Summary
Constructors Constructor Description ApplicationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationConfigaddBasePackage(String basePackage)Set<String>getBasePackages()ApplicationConfig.ColorOutputgetColorOutput()StringgetId()StringgetName()FilegetStorage()StringgetVersion()booleanisPackageScanWarning()booleanisPrintBanner()booleanisStorageEnabled()ApplicationConfigsetColorOutput(ApplicationConfig.ColorOutput colorOutput)ApplicationConfigsetId(String id)Sets the identifier of the application (keep it in sync with the name if already equals to it).ApplicationConfigsetName(String name)ApplicationConfigsetPackageScanWarning(boolean packageScanWarning)ApplicationConfigsetPrintBanner(boolean printBanner)ApplicationConfigsetStorage(File storage)ApplicationConfigsetVersion(String version)
-
-
-
Method Detail
-
getId
public String getId()
-
setId
public ApplicationConfig setId(String id)
Sets the identifier of the application (keep it in sync with the name if already equals to it).- Parameters:
id- the identifier.- Returns:
- the config object itself.
-
getName
public String getName()
-
setName
public ApplicationConfig setName(String name)
-
getVersion
public String getVersion()
-
setVersion
public ApplicationConfig setVersion(String version)
-
getStorage
public File getStorage()
-
setStorage
public ApplicationConfig setStorage(File storage)
-
isStorageEnabled
public boolean isStorageEnabled()
-
addBasePackage
public ApplicationConfig addBasePackage(String basePackage)
-
isPackageScanWarning
public boolean isPackageScanWarning()
-
setPackageScanWarning
public ApplicationConfig setPackageScanWarning(boolean packageScanWarning)
-
isPrintBanner
public boolean isPrintBanner()
-
setPrintBanner
public ApplicationConfig setPrintBanner(boolean printBanner)
-
getColorOutput
public ApplicationConfig.ColorOutput getColorOutput()
-
setColorOutput
public ApplicationConfig setColorOutput(ApplicationConfig.ColorOutput colorOutput)
-
-