org.jboss.weld.environment.servlet.services.ServletResourceInjectionServices Maven / Gradle / Ivy
package org.jboss.weld.environment.servlet.services;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
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 new IllegalStateException("Error creating JNDI context", e);
}
}
@Override
protected Context getContext()
{
return context;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy