ch.elca.el4j.core.config
Class JndiConfigurationHelper

java.lang.Object
  extended by ch.elca.el4j.core.config.JndiConfigurationHelper

public class JndiConfigurationHelper
extends Object

This class simplifies the setup of JNDI.

Author:
Andreas Bur (ABU)
File-location:
JndiConfigurationHelper
Last check-in date:
2009-08-04 15:13:46 +0200 (Di, 04. Aug 2009) by swismer for revision 3879

Field Summary
static String ENV_CONTEXT
          The default JNDI context java:comp/env.
 
Constructor Summary
JndiConfigurationHelper()
           
 
Method Summary
 String buildJndiResourceName(String name)
          Makes a context-relative JNDI resource name absolute.
 String getContext()
           
 JndiTemplate getJndiTemplate()
           
 void setContext(String context)
          Sets the JNDI context.
 void setJndiTemplate(JndiTemplate jndiTemplate)
          Sets the JNDI template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENV_CONTEXT

public static final String ENV_CONTEXT
The default JNDI context java:comp/env.

See Also:
Constant Field Values
Constructor Detail

JndiConfigurationHelper

public JndiConfigurationHelper()
Method Detail

getContext

public String getContext()
Returns:
Returns the JNDI context.

setContext

public void setContext(String context)
Sets the JNDI context. Default is java:comp/env.

Parameters:
context - The JNDI context.

getJndiTemplate

public JndiTemplate getJndiTemplate()
Returns:
Returns the JNDI template.

setJndiTemplate

public void setJndiTemplate(JndiTemplate jndiTemplate)
Sets the JNDI template. Default ist JndiTemplate.

Parameters:
jndiTemplate - The JNDI template.

buildJndiResourceName

public String buildJndiResourceName(String name)
Makes a context-relative JNDI resource name absolute.

Parameters:
name - A relative JNDI resource name.
Returns:
Returns the absolute representation of the given relative JNDI resource name.


Copyright © 2005-2011 ELCA. All Rights Reserved.