Configuration, EventSource, ImmutableConfiguration, SynchronizerSupportpublic class JNDIConfiguration extends AbstractConfiguration
| Constructor | Description |
|---|---|
JNDIConfiguration() |
Creates a JNDIConfiguration using the default initial context as the
root of the properties.
|
JNDIConfiguration(java.lang.String prefix) |
Creates a JNDIConfiguration using the default initial context, shifted
with the specified prefix, as the root of the properties.
|
JNDIConfiguration(javax.naming.Context context) |
Creates a JNDIConfiguration using the specified initial context as the
root of the properties.
|
JNDIConfiguration(javax.naming.Context context,
java.lang.String prefix) |
Creates a JNDIConfiguration using the specified initial context shifted
by the specified prefix as the root of the properties.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addPropertyDirect(java.lang.String key,
java.lang.Object obj) |
This operation is not supported and will throw an
UnsupportedOperationException.
|
protected void |
clearPropertyDirect(java.lang.String key) |
Removes the specified property.
|
protected boolean |
containsKeyInternal(java.lang.String key) |
Checks whether the specified key is contained in this configuration.
|
javax.naming.Context |
getBaseContext() |
Return the base context with the prefix applied.
|
javax.naming.Context |
getContext() |
Return the initial context used by this configuration.
|
protected java.util.Iterator<java.lang.String> |
getKeysInternal() |
Returns an iterator with all property keys stored in this configuration.
|
protected java.util.Iterator<java.lang.String> |
getKeysInternal(java.lang.String prefix) |
Returns an iterator with all property keys starting with the given
prefix.
|
java.lang.String |
getPrefix() |
Returns the prefix.
|
protected java.lang.Object |
getPropertyInternal(java.lang.String key) |
Returns the value of the specified property.
|
protected boolean |
isEmptyInternal() |
Returns a flag whether this configuration is empty.
|
void |
setContext(javax.naming.Context context) |
Set the initial context of the configuration.
|
void |
setPrefix(java.lang.String prefix) |
Sets the prefix.
|
protected void |
setPropertyInternal(java.lang.String key,
java.lang.Object value) |
This operation is not supported and will throw an
UnsupportedOperationException.
|
addErrorLogListener, addProperty, addPropertyInternal, append, beginRead, beginWrite, clear, clearInternal, clearProperty, cloneInterpolator, containsKey, copy, endRead, endWrite, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getConfigurationDecoder, getConversionHandler, getDouble, getDouble, getDouble, getEncodedString, getEncodedString, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getKeys, getList, getList, getList, getList, getListDelimiterHandler, getLogger, getLong, getLong, getLong, getProperties, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getSynchronizer, immutableSubset, initLogger, installInterpolator, interpolate, interpolate, interpolatedConfiguration, isEmpty, isScalarValue, isThrowExceptionOnMissing, lock, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setProperty, setSynchronizer, setThrowExceptionOnMissing, size, sizeInternal, subset, unlockaddEventListener, clearErrorListeners, clearEventListeners, clone, copyEventListeners, createErrorEvent, createEvent, fireError, fireEvent, getEventListenerRegistrations, getEventListeners, isDetailEvents, removeEventListener, setDetailEventspublic JNDIConfiguration()
throws javax.naming.NamingException
javax.naming.NamingException - thrown if an error occurs when initializing the default contextpublic JNDIConfiguration(java.lang.String prefix)
throws javax.naming.NamingException
prefix - the prefixjavax.naming.NamingException - thrown if an error occurs when initializing the default contextpublic JNDIConfiguration(javax.naming.Context context)
context - the initial contextpublic JNDIConfiguration(javax.naming.Context context,
java.lang.String prefix)
context - the initial contextprefix - the prefixprotected java.util.Iterator<java.lang.String> getKeysInternal()
getKeysInternal in class AbstractConfigurationprotected java.util.Iterator<java.lang.String> getKeysInternal(java.lang.String prefix)
getKeysInternal in class AbstractConfigurationprefix - the prefixprotected boolean isEmptyInternal()
isEmptyInternal in class AbstractConfigurationprotected void setPropertyInternal(java.lang.String key,
java.lang.Object value)
This operation is not supported and will throw an UnsupportedOperationException.
setPropertyInternal in class AbstractConfigurationkey - the keyvalue - the valuejava.lang.UnsupportedOperationException - always thrown as this method is not supportedprotected void clearPropertyDirect(java.lang.String key)
clearPropertyDirect in class AbstractConfigurationkey - the key of the property to removeprotected boolean containsKeyInternal(java.lang.String key)
containsKeyInternal in class AbstractConfigurationkey - the key to checkpublic java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
prefix - The prefix to setprotected java.lang.Object getPropertyInternal(java.lang.String key)
getPropertyInternal in class AbstractConfigurationkey - the key of the propertyprotected void addPropertyDirect(java.lang.String key,
java.lang.Object obj)
This operation is not supported and will throw an UnsupportedOperationException.
addPropertyDirect in class AbstractConfigurationkey - the keyobj - the valuejava.lang.UnsupportedOperationException - always thrown as this method is not supportedpublic javax.naming.Context getBaseContext()
throws javax.naming.NamingException
javax.naming.NamingException - if an error occurspublic javax.naming.Context getContext()
public void setContext(javax.naming.Context context)
context - the contextCopyright © 2001–2018. All rights reserved.