KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > tbutils > res > JNDIInitialProvider


1 package com.tonbeller.tbutils.res;
2
3 /**
4  * initial provider. looks up variables
5  * <ol>
6  * <li>in JNDI java:/comp/env context</li>
7  * <li>System.getProperty()</li>
8  * <li>user.properties in root classpath</li>
9  * <li>resfactory.properties in root classpath</li>
10  * </ol>
11  * in that order.
12  *
13  * @author av
14  */

15 public class JNDIInitialProvider extends SimpleInitialProvider{
16   public JNDIInitialProvider() {
17     add(0, new JNDIResourceProvider());
18   }
19 }
Popular Tags