org.apache.jackrabbit.j2ee
Class JNDIConfig

java.lang.Object
  extended by org.apache.jackrabbit.j2ee.AbstractConfig
      extended by org.apache.jackrabbit.j2ee.JNDIConfig

public class JNDIConfig
extends AbstractConfig

The JNDI config hold information about JNDI connection details. It supports the following properties and init parameters:

+-------------------+--------------------+ | Property Name | Init-Param Name | +-------------------+--------------------+ | jndi.enable | {provider spec.} | | java.naming.* | java.naming.* | +-------------------+--------------------+


Field Summary
 
Fields inherited from class org.apache.jackrabbit.j2ee.AbstractConfig
valid
 
Constructor Summary
JNDIConfig(BootstrapConfig parentConfig)
           
 
Method Summary
 boolean enabled()
           
 String getJndiEnabled()
           
 Properties getJndiEnv()
           
 String getJndiName()
           
 void init(Properties props)
          Initializes the configuration with values from the given properties
 void init(javax.servlet.ServletConfig ctx)
           
 void setJndiEnabled(String jndiEnabled)
           
 void setJndiName(String jndiName)
           
 void validate()
           
 
Methods inherited from class org.apache.jackrabbit.j2ee.AbstractConfig
isValid, logInfos, toMapName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIConfig

public JNDIConfig(BootstrapConfig parentConfig)
Method Detail

getJndiName

public String getJndiName()

setJndiName

public void setJndiName(String jndiName)

enabled

public boolean enabled()

getJndiEnabled

public String getJndiEnabled()

setJndiEnabled

public void setJndiEnabled(String jndiEnabled)

getJndiEnv

public Properties getJndiEnv()

init

public void init(Properties props)
          throws javax.servlet.ServletException
Description copied from class: AbstractConfig
Initializes the configuration with values from the given properties

Overrides:
init in class AbstractConfig
Parameters:
props - the configuration properties
Throws:
javax.servlet.ServletException

init

public void init(javax.servlet.ServletConfig ctx)
          throws javax.servlet.ServletException
Overrides:
init in class AbstractConfig
Throws:
javax.servlet.ServletException

validate

public void validate()
Overrides:
validate in class AbstractConfig


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.