Minor changes after review

This commit is contained in:
Alex Theedom 2016-08-15 18:47:23 +01:00
parent 623c2a0f63
commit 2f331cecf8
2 changed files with 8 additions and 1 deletions

View File

@ -2,9 +2,13 @@ package org.baeldung.startup;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
@Component
@Scope(value = "prototype")
public class AllStrategiesExampleBean implements InitializingBean {
private static final Logger LOG = Logger.getLogger(AllStrategiesExampleBean.class);

View File

@ -2,10 +2,14 @@ package org.baeldung.startup;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
import java.util.Arrays;
@Component
@Scope(value = "prototype")
public class InitMethodExampleBean {
private static final Logger LOG = Logger.getLogger(InitMethodExampleBean.class);
@ -17,4 +21,3 @@ public class InitMethodExampleBean {
LOG.info(Arrays.asList(environment.getDefaultProfiles()));
}
}