All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.weld.environment.servlet.services.ServletResourceInjectionServices Maven / Gradle / Ivy

There is a newer version: 1.0.1-Final
Show 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.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