org.osjava.sj.loader
Class JndiLoader

java.lang.Object
  extended by org.osjava.sj.loader.JndiLoader

public class JndiLoader
extends Object

Loads a .properties file into a JNDI server.


Field Summary
static String SIMPLE_COLON_REPLACE
           
static String SIMPLE_DELIMITER
           
static String SIMPLE_SHARED
           
 
Constructor Summary
JndiLoader()
           
JndiLoader(Hashtable env)
           
 
Method Summary
 String getParameter(String key)
           
 void load(Properties properties, Context ctxt)
          Loads a properties object into a context.
 void load(Properties properties, Context ctxt, Context parentCtxt, String ctxtName)
           
 void loadDirectory(File directory, Context ctxt)
          Loads all .properties files in a directory into a context
 void loadDirectory(File directory, Context ctxt, Context parentCtxt, String ctxtName)
           
 void putParameter(String key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIMPLE_DELIMITER

public static final String SIMPLE_DELIMITER
See Also:
Constant Field Values

SIMPLE_SHARED

public static final String SIMPLE_SHARED
See Also:
Constant Field Values

SIMPLE_COLON_REPLACE

public static final String SIMPLE_COLON_REPLACE
See Also:
Constant Field Values
Constructor Detail

JndiLoader

public JndiLoader()

JndiLoader

public JndiLoader(Hashtable env)
Method Detail

putParameter

public void putParameter(String key,
                         String value)

getParameter

public String getParameter(String key)

loadDirectory

public void loadDirectory(File directory,
                          Context ctxt)
                   throws NamingException,
                          IOException
Loads all .properties files in a directory into a context

Throws:
NamingException
IOException

loadDirectory

public void loadDirectory(File directory,
                          Context ctxt,
                          Context parentCtxt,
                          String ctxtName)
                   throws NamingException,
                          IOException
Throws:
NamingException
IOException

load

public void load(Properties properties,
                 Context ctxt)
          throws NamingException
Loads a properties object into a context.

Throws:
NamingException

load

public void load(Properties properties,
                 Context ctxt,
                 Context parentCtxt,
                 String ctxtName)
          throws NamingException
Throws:
NamingException


Copyright © 2003-2008 OSJava. All Rights Reserved.