Package ninja.utils
Class NinjaPropertiesImplTool
- java.lang.Object
-
- ninja.utils.NinjaPropertiesImplTool
-
public class NinjaPropertiesImplTool extends Object
-
-
Constructor Summary
Constructors Constructor Description NinjaPropertiesImplTool()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkThatApplicationSecretIsSet(boolean isProd, String baseDirWithoutTrailingSlash, org.apache.commons.configuration.PropertiesConfiguration defaultConfiguration, org.apache.commons.configuration.Configuration compositeConfiguration)
This method checks that your configurations have set a application.secret=23r213r12r123 If application.secret is missing or is empty it will do the following: - In dev and test mode it'll generate a new application secret and write the secret to both src/main/java/conf/application.conf and the classes dir were the compiled stuff goes.
-
-
-
Method Detail
-
checkThatApplicationSecretIsSet
public static void checkThatApplicationSecretIsSet(boolean isProd, String baseDirWithoutTrailingSlash, org.apache.commons.configuration.PropertiesConfiguration defaultConfiguration, org.apache.commons.configuration.Configuration compositeConfiguration)
This method checks that your configurations have set a application.secret=23r213r12r123 If application.secret is missing or is empty it will do the following: - In dev and test mode it'll generate a new application secret and write the secret to both src/main/java/conf/application.conf and the classes dir were the compiled stuff goes. - In prod it will throw a runtime exception and stop the server.
-
-