Class JndiBuilderParametersImpl
java.lang.Object
org.apache.commons.configuration2.builder.BasicBuilderParameters
org.apache.commons.configuration2.builder.JndiBuilderParametersImpl
- All Implemented Interfaces:
Cloneable
,BasicBuilderProperties<BasicBuilderParameters>
,BuilderParameters
,JndiBuilderProperties<JndiBuilderParametersImpl>
public class JndiBuilderParametersImpl
extends BasicBuilderParameters
implements JndiBuilderProperties<JndiBuilderParametersImpl>
A specialized parameters object for JNDI configurations.
In addition to the basic properties common to all configuration implementations, a JNDI configuration has some
special properties defining the subset of the JNDI tree to be managed. This class provides fluent methods for setting
these. The getParameters()
method puts all properties defined by the user in a map from where they can be
accessed by a builder for JNDI configurations.
This class is not thread-safe. It is intended that an instance is constructed and initialized by a single thread
during configuration of a ConfigurationBuilder
.
- Since:
- 2.0
-
Field Summary
Fields inherited from interface org.apache.commons.configuration2.builder.BuilderParameters
RESERVED_PARAMETER_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetContext
(Context ctx) Sets the JNDI context to be used by the JNDI configuration.Sets the prefix in the JNDI tree.Methods inherited from class org.apache.commons.configuration2.builder.BasicBuilderParameters
clone, copyPropertiesFrom, fetchBeanHelper, fetchInterpolatorSpecification, fetchProperty, getParameters, inheritFrom, merge, setBeanHelper, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setSynchronizer, setThrowExceptionOnMissing, storeProperty
-
Constructor Details
-
JndiBuilderParametersImpl
public JndiBuilderParametersImpl()
-
-
Method Details
-
setContext
Description copied from interface:JndiBuilderProperties
Sets the JNDI context to be used by the JNDI configuration.- Specified by:
setContext
in interfaceJndiBuilderProperties<JndiBuilderParametersImpl>
- Parameters:
ctx
- the JNDIContext
- Returns:
- a reference to this object for method chaining
-
setPrefix
Description copied from interface:JndiBuilderProperties
Sets the prefix in the JNDI tree. When creating the root JNDI context this prefix is taken into account.- Specified by:
setPrefix
in interfaceJndiBuilderProperties<JndiBuilderParametersImpl>
- Parameters:
p
- the prefix- Returns:
- a reference to this object for method chaining
-