org.jboss.weld.environment.servlet.services.ServletResourceInjectionServices Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weld-servlet-shaded Show documentation
Show all versions of weld-servlet-shaded Show documentation
This jar bundles all the bits of Weld and CDI required for running in a Servlet container.
The newest version!
package org.jboss.weld.environment.servlet.services;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.jboss.weld.environment.servlet.logging.WeldServletLogger;
import org.jboss.weld.injection.spi.ResourceInjectionServices;
import org.jboss.weld.injection.spi.helpers.AbstractResourceServices;
public abstract class ServletResourceInjectionServices extends AbstractResourceServices implements ResourceInjectionServices {
private Context context;
public ServletResourceInjectionServices() {
try {
context = new InitialContext();
} catch (NamingException e) {
throw WeldServletLogger.LOG.errorCreatingJNDIContext(e);
}
}
@Override
protected Context getContext() {
return context;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy