Package org.powertac.visualizer.config
Class DefaultProfileUtil
- java.lang.Object
-
- org.powertac.visualizer.config.DefaultProfileUtil
-
public final class DefaultProfileUtil extends Object
Utility class to load a Spring profile to be used as default when there is nospring.profiles.active
set in the environment or as command line argument. If the value is not available inapplication.yml
thendev
profile will be used as default.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addDefaultProfile(org.springframework.boot.SpringApplication app)
Set a default to use when no profile is configured.static String[]
getActiveProfiles(org.springframework.core.env.Environment env)
Get the profiles that are applied else get default profiles.
-
-
-
Method Detail
-
addDefaultProfile
public static void addDefaultProfile(org.springframework.boot.SpringApplication app)
Set a default to use when no profile is configured.- Parameters:
app
- the Spring application
-
getActiveProfiles
public static String[] getActiveProfiles(org.springframework.core.env.Environment env)
Get the profiles that are applied else get default profiles.
-
-