|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.props.LdapProperties
public final class LdapProperties
LdapProperties attempts to load the configuration properties
from a properties file in the classpath for a PropertyConfig
object. The default properties file is '/ldap.properties'.
| Field Summary | |
|---|---|
static String |
PROPERTIES_FILE
Default file to read properties from, value is "/ldap.properties". |
| Constructor Summary | |
|---|---|
LdapProperties(PropertyConfig pc)
This will create a new LdapProperties for the supplied
properties config. |
|
LdapProperties(PropertyConfig pc,
InputStream is)
This will create a new LdapProperties with the supplied
properties properties config and input stream. |
|
| Method Summary | |
|---|---|
void |
configure()
Calls PropertyConfig.setEnvironmentProperties(Properties). |
Properties |
getProperties()
This returns the name of the properties being used by this
LdapProperties. |
boolean |
isPropertySet(String key)
This returns whether the supplied key has already been set. |
void |
setProperty(String key,
String value)
This sets the supplied key and value in the ldap properties. |
void |
useDefaultPropertiesFile()
This will load properties from the default properties file. |
void |
useProperties(InputStream is)
This will load properties from the supplied input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTIES_FILE
| Constructor Detail |
|---|
public LdapProperties(PropertyConfig pc)
LdapProperties for the supplied
properties config.
pc - object to set properties for
public LdapProperties(PropertyConfig pc,
InputStream is)
LdapProperties with the supplied
properties properties config and input stream.
pc - object to set properties foris - InputStream containing properties| Method Detail |
|---|
public void useDefaultPropertiesFile()
public void useProperties(InputStream is)
is - InputStream containing propertiespublic Properties getProperties()
LdapProperties.
Properties
public void setProperty(String key,
String value)
key - Stringvalue - Stringpublic boolean isPropertySet(String key)
key - String
booleanpublic void configure()
PropertyConfig.setEnvironmentProperties(Properties).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||