Created
November 16, 2016 00:07
-
-
Save ljnelson/7bca3de331226ef66635aa7ea9646e75 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
package com.serverco; | |
import javax.enterprise.event.Observes; | |
import javax.enterprise.inject.spi.AfterDeploymentValidation; | |
import javax.enterprise.inject.spi.BeanManager; | |
import javax.enterprise.inject.spi.Extension; | |
public class SimplePortableExtension implements Extension { | |
public SimplePortableExtension() { | |
super(); | |
// Called by java.util.ServiceLoader | |
} | |
public void containerIsOpenForBusiness(@Observes final AfterDeploymentValidation event, final BeanManager beanManager) { | |
System.out.println("*** container is open for business!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment