|
|
@ -4,8 +4,6 @@ import java.net.InetAddress;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Optional;
|
|
|
|
import java.util.Optional;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
import java.util.stream.Stream;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.BeansException;
|
|
|
|
import org.springframework.beans.BeansException;
|
|
|
|
import org.springframework.context.ApplicationContext;
|
|
|
|
import org.springframework.context.ApplicationContext;
|
|
|
@ -86,7 +84,7 @@ public class ApplicationContainer implements ApplicationContextAware {
|
|
|
|
actx = applicationContext;
|
|
|
|
actx = applicationContext;
|
|
|
|
applicationName = actx.getApplicationName();
|
|
|
|
applicationName = actx.getApplicationName();
|
|
|
|
String[] apf = Assert.ifEmpty(actx.getEnvironment().getActiveProfiles(), actx.getEnvironment()::getDefaultProfiles);
|
|
|
|
String[] apf = Assert.ifEmpty(actx.getEnvironment().getActiveProfiles(), actx.getEnvironment()::getDefaultProfiles);
|
|
|
|
activeProfiles = Stream.of(apf).collect(Collectors.toList());
|
|
|
|
activeProfiles = List.of(apf);
|
|
|
|
startupDate = new Date(actx.getStartupDate());
|
|
|
|
startupDate = new Date(actx.getStartupDate());
|
|
|
|
secured = actx.containsBean("authorityService");
|
|
|
|
secured = actx.containsBean("authorityService");
|
|
|
|
log().debug("{} loaded", this);
|
|
|
|
log().debug("{} loaded", this);
|
|
|
|