CNCtxFactory.java revision 820:9205e980062a
138465Smsmith/* 238465Smsmith * Copyright (c) 1999, 2004, Oracle and/or its affiliates. All rights reserved. 338465Smsmith * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 438465Smsmith * 538465Smsmith * This code is free software; you can redistribute it and/or modify it 638465Smsmith * under the terms of the GNU General Public License version 2 only, as 738465Smsmith * published by the Free Software Foundation. Oracle designates this 838465Smsmith * particular file as subject to the "Classpath" exception as provided 938465Smsmith * by Oracle in the LICENSE file that accompanied this code. 1038465Smsmith * 1138465Smsmith * This code is distributed in the hope that it will be useful, but WITHOUT 1238465Smsmith * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1338465Smsmith * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1438465Smsmith * version 2 for more details (a copy is included in the LICENSE file that 1538465Smsmith * accompanied this code). 1638465Smsmith * 1738465Smsmith * You should have received a copy of the GNU General Public License version 1838465Smsmith * 2 along with this work; if not, write to the Free Software Foundation, 1938465Smsmith * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2038465Smsmith * 2138465Smsmith * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2238465Smsmith * or visit www.oracle.com if you need additional information or have any 2338465Smsmith * questions. 2438465Smsmith */ 2538465Smsmith 2638465Smsmithpackage com.sun.jndi.cosnaming; 27119483Sobrien 28119483Sobrienimport javax.naming.spi.InitialContextFactory; 29119483Sobrienimport javax.naming.*; 3038465Smsmith 3159854Sbpimport java.util.Hashtable; 3238465Smsmith 3338465Smsmith/** 3438465Smsmith * Implements the JNDI SPI InitialContextFactory interface used to 3538465Smsmith * create the InitialContext objects. 3640141Speter * 3740141Speter * @author Raj Krishnamurthy 3883321Speter */ 3983321Speter 4038465Smsmithpublic class CNCtxFactory implements InitialContextFactory { 4138465Smsmith 4238465Smsmith /** 4383321Speter * Creates the InitialContext object. Properties parameter should 4483321Speter * should contain the ORB object for the value jndi.corba.orb. 4583321Speter * @param env Properties object 4683321Speter */ 4783321Speter 4883321Speter public Context getInitialContext(Hashtable<?,?> env) throws NamingException { 4983321Speter return new CNCtx(env); 5083321Speter } 5183321Speter} 5283321Speter