Package org.apache.jackrabbit.j2ee
Class JNDIConfig
java.lang.Object
org.apache.jackrabbit.j2ee.AbstractConfig
org.apache.jackrabbit.j2ee.JNDIConfig
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
enabled()
void
init
(Properties props) Initializes the configuration with values from the given propertiesvoid
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
-
Constructor Details
-
JNDIConfig
-
-
Method Details
-
getJndiName
-
setJndiName
-
enabled
public boolean enabled() -
getJndiEnabled
-
setJndiEnabled
-
getJndiEnv
-
init
Description copied from class:AbstractConfig
Initializes the configuration with values from the given properties- Overrides:
init
in classAbstractConfig
- Parameters:
props
- the configuration properties- Throws:
javax.servlet.ServletException
-
init
public void init(javax.servlet.ServletConfig ctx) throws javax.servlet.ServletException - Overrides:
init
in classAbstractConfig
- Throws:
javax.servlet.ServletException
-
validate
public void validate()- Overrides:
validate
in classAbstractConfig
-