public final class CouchbaseProperties
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getNamespace()
Returns the namespace to be used for the properties.
|
static java.lang.String |
getProperty(java.lang.String name)
Returns the property for the given name (or null if not set).
|
static java.lang.String |
getProperty(java.lang.String name,
boolean ignore)
Returns the property for the given name (or null if not set).
|
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String def)
Returns the property for the given name (or given default if not set).
|
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String def,
boolean ignore)
Returns the property for the given name (or given default if not set).
|
static void |
setNamespace(java.lang.String ns)
Replaces the default (or old) namespace with this new one.
|
static void |
setPropertyFile(java.lang.String filename)
Set the filename of the properties file and load it (if possible).
|
public static void setPropertyFile(java.lang.String filename)
filename
- the filename of the properties file.public static java.lang.String getProperty(java.lang.String name, java.lang.String def, boolean ignore)
name
- the name of the property.def
- the default value to return.ignore
- ignore the property namespace.public static java.lang.String getProperty(java.lang.String name, boolean ignore)
name
- the name of the property.ignore
- ignore the property namespace.public static java.lang.String getProperty(java.lang.String name)
name
- the name of the property.public static java.lang.String getProperty(java.lang.String name, java.lang.String def)
name
- the name of the property.def
- the default value to return.public static java.lang.String getNamespace()
public static void setNamespace(java.lang.String ns)
ns
- the namespace to be used.Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.