Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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