Created
November 2, 2016 10:04
-
-
Save sermojohn/c1044df560dbd86e4b9fae0283c64265 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.slf4j.Logger; | |
import javax.enterprise.context.ApplicationScoped; | |
import javax.enterprise.context.Initialized; | |
import javax.enterprise.event.Observes; | |
import javax.inject.Inject; | |
@javax.enterprise.context.ApplicationScoped | |
public class StartupCdiBean { | |
@Inject | |
private Logger LOG; | |
public void init(@Observes @Initialized(ApplicationScoped.class) Object init) { | |
LOG.info("StartupBean was succesfully initialized on start-up!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment