public class JNDIConfig extends AbstractConfig
+-------------------+--------------------+ | Property Name | Init-Param Name | +-------------------+--------------------+ | jndi.enable | {provider spec.} | | java.naming.* | java.naming.* | +-------------------+--------------------+
valid
Constructor and Description |
---|
JNDIConfig(BootstrapConfig parentConfig) |
Modifier and Type | Method and Description |
---|---|
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() |
isValid, logInfos, toMapName
public JNDIConfig(BootstrapConfig parentConfig)
public String getJndiName()
public void setJndiName(String jndiName)
public boolean enabled()
public String getJndiEnabled()
public void setJndiEnabled(String jndiEnabled)
public Properties getJndiEnv()
public void init(Properties props) throws javax.servlet.ServletException
AbstractConfig
init
in class AbstractConfig
props
- the configuration propertiesjavax.servlet.ServletException
public void init(javax.servlet.ServletConfig ctx) throws javax.servlet.ServletException
init
in class AbstractConfig
javax.servlet.ServletException
public void validate()
validate
in class AbstractConfig
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.