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

org.infinispan.server.context.ServerInitialContextFactory Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev05
Show newest version
package org.infinispan.server.context;

import java.util.Hashtable;
import java.util.concurrent.ConcurrentMap;

import javax.naming.Context;
import javax.naming.spi.InitialContextFactory;

/**
 * @author Tristan Tarrant <[email protected]>
 * @since 11.0
 **/
public class ServerInitialContextFactory implements InitialContextFactory {

   private final ConcurrentMap namedObjects;

   public ServerInitialContextFactory(ConcurrentMap namedObjects) {
      this.namedObjects = namedObjects;
   }

   @Override
   public Context getInitialContext(Hashtable environment) {
      return new ServerInitialContext(namedObjects);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy