| org.apache.commons.configuration.AbstractConfiguration org.apache.commons.configuration.JNDIConfiguration
JNDIConfiguration | public class JNDIConfiguration extends AbstractConfiguration (Code) | | This Configuration class allows you to interface with a JNDI datasource.
A JNDIConfiguration is read-only, write operations will throw an
UnsupportedOperationException. The clear operations are supported but the
underlying JNDI data source is not changed.
author: Eric Pugh version: $Id: JNDIConfiguration.java 497181 2007-01-17 21:35:28Z oheger $ |
Constructor Summary | |
public | JNDIConfiguration() Creates a JNDIConfiguration using the default initial context as the
root of the properties. | public | JNDIConfiguration(String prefix) Creates a JNDIConfiguration using the default initial context, shifted
with the specified prefix, as the root of the properties. | public | JNDIConfiguration(Context context) Creates a JNDIConfiguration using the specified initial context as the
root of the properties. | public | JNDIConfiguration(Context context, String prefix) Creates a JNDIConfiguration using the specified initial context shifted
by the specified prefix as the root of the properties. |
JNDIConfiguration | public JNDIConfiguration() throws NamingException(Code) | | Creates a JNDIConfiguration using the default initial context as the
root of the properties.
throws: NamingException - thrown if an error occurs when initializing the default context |
JNDIConfiguration | public JNDIConfiguration(String prefix) throws NamingException(Code) | | Creates a JNDIConfiguration using the default initial context, shifted
with the specified prefix, as the root of the properties.
Parameters: prefix - the prefix throws: NamingException - thrown if an error occurs when initializing the default context |
JNDIConfiguration | public JNDIConfiguration(Context context)(Code) | | Creates a JNDIConfiguration using the specified initial context as the
root of the properties.
Parameters: context - the initial context |
JNDIConfiguration | public JNDIConfiguration(Context context, String prefix)(Code) | | Creates a JNDIConfiguration using the specified initial context shifted
by the specified prefix as the root of the properties.
Parameters: context - the initial context Parameters: prefix - the prefix |
addPropertyDirect | protected void addPropertyDirect(String key, Object obj)(Code) | | This operation is not supported and will throw an
UnsupportedOperationException.
Parameters: key - the key Parameters: obj - the value throws: UnsupportedOperationException - |
clearProperty | public void clearProperty(String key)(Code) | | Removes the specified property.
Parameters: key - the key of the property to remove |
containsKey | public boolean containsKey(String key)(Code) | | Checks whether the specified key is contained in this configuration.
Parameters: key - the key to check a flag whether this key is stored in this configuration |
getContext | public Context getContext()(Code) | | Return the initial context used by this configuration. This context is
independent of the prefix specified.
the initial context |
getKeys | public Iterator getKeys()(Code) | | Returns an iterator with all property keys stored in this configuration.
an iterator with all keys |
getKeys | public Iterator getKeys(String prefix)(Code) | | Returns an iterator with all property keys starting with the given
prefix.
Parameters: prefix - the prefix an iterator with the selected keys |
getPrefix | public String getPrefix()(Code) | | Returns the prefix.
the prefix |
getProperty | public Object getProperty(String key)(Code) | | Returns the value of the specified property.
Parameters: key - the key of the property the value of this property |
isEmpty | public boolean isEmpty()(Code) | | Returns a flag whether this configuration is empty.
the empty flag |
setContext | public void setContext(Context context)(Code) | | Set the initial context of the configuration.
Parameters: context - the context |
setPrefix | public void setPrefix(String prefix)(Code) | | Sets the prefix.
Parameters: prefix - The prefix to set |
setProperty | public void setProperty(String key, Object value)(Code) | | This operation is not supported and will throw an
UnsupportedOperationException.
Parameters: key - the key Parameters: value - the value throws: UnsupportedOperationException - |
Methods inherited from org.apache.commons.configuration.AbstractConfiguration | public void addErrorLogListener()(Code)(Java Doc) public void addProperty(String key, Object value)(Code)(Java Doc) abstract protected void addPropertyDirect(String key, Object value)(Code)(Java Doc) public void clear()(Code)(Java Doc) public void clearProperty(String key)(Code)(Java Doc) protected void clearPropertyDirect(String key)(Code)(Java Doc) abstract public boolean containsKey(String key)(Code)(Java Doc) protected ConfigurationInterpolator createInterpolator()(Code)(Java Doc) public BigDecimal getBigDecimal(String key)(Code)(Java Doc) public BigDecimal getBigDecimal(String key, BigDecimal defaultValue)(Code)(Java Doc) public BigInteger getBigInteger(String key)(Code)(Java Doc) public BigInteger getBigInteger(String key, BigInteger defaultValue)(Code)(Java Doc) public boolean getBoolean(String key)(Code)(Java Doc) public boolean getBoolean(String key, boolean defaultValue)(Code)(Java Doc) public Boolean getBoolean(String key, Boolean defaultValue)(Code)(Java Doc) public byte getByte(String key)(Code)(Java Doc) public byte getByte(String key, byte defaultValue)(Code)(Java Doc) public Byte getByte(String key, Byte defaultValue)(Code)(Java Doc) public static char getDefaultListDelimiter()(Code)(Java Doc) public static char getDelimiter()(Code)(Java Doc) public double getDouble(String key)(Code)(Java Doc) public double getDouble(String key, double defaultValue)(Code)(Java Doc) public Double getDouble(String key, Double defaultValue)(Code)(Java Doc) public float getFloat(String key)(Code)(Java Doc) public float getFloat(String key, float defaultValue)(Code)(Java Doc) public Float getFloat(String key, Float defaultValue)(Code)(Java Doc) public int getInt(String key)(Code)(Java Doc) public int getInt(String key, int defaultValue)(Code)(Java Doc) public Integer getInteger(String key, Integer defaultValue)(Code)(Java Doc) public ConfigurationInterpolator getInterpolator()(Code)(Java Doc) abstract public Iterator getKeys()(Code)(Java Doc) public Iterator getKeys(String prefix)(Code)(Java Doc) public List getList(String key)(Code)(Java Doc) public List getList(String key, List defaultValue)(Code)(Java Doc) public char getListDelimiter()(Code)(Java Doc) public Log getLogger()(Code)(Java Doc) public long getLong(String key)(Code)(Java Doc) public long getLong(String key, long defaultValue)(Code)(Java Doc) public Long getLong(String key, Long defaultValue)(Code)(Java Doc) public Properties getProperties(String key)(Code)(Java Doc) public Properties getProperties(String key, Properties defaults)(Code)(Java Doc) public short getShort(String key)(Code)(Java Doc) public short getShort(String key, short defaultValue)(Code)(Java Doc) public Short getShort(String key, Short defaultValue)(Code)(Java Doc) public String getString(String key)(Code)(Java Doc) public String getString(String key, String defaultValue)(Code)(Java Doc) public String[] getStringArray(String key)(Code)(Java Doc) public synchronized StrSubstitutor getSubstitutor()(Code)(Java Doc) protected String interpolate(String base)(Code)(Java Doc) protected Object interpolate(Object value)(Code)(Java Doc) protected String interpolateHelper(String base, List priorVariables)(Code)(Java Doc) public boolean isDelimiterParsingDisabled()(Code)(Java Doc) abstract public boolean isEmpty()(Code)(Java Doc) public boolean isThrowExceptionOnMissing()(Code)(Java Doc) protected Object resolveContainerStore(String key)(Code)(Java Doc) public static void setDefaultListDelimiter(char delimiter)(Code)(Java Doc) public static void setDelimiter(char delimiter)(Code)(Java Doc) public void setDelimiterParsingDisabled(boolean delimiterParsingDisabled)(Code)(Java Doc) public void setListDelimiter(char listDelimiter)(Code)(Java Doc) public void setLogger(Log log)(Code)(Java Doc) public void setProperty(String key, Object value)(Code)(Java Doc) public void setThrowExceptionOnMissing(boolean throwExceptionOnMissing)(Code)(Java Doc) public Configuration subset(String prefix)(Code)(Java Doc)
|
|
|