|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectibilling.client.ClientProperties
public class ClientProperties
Helper class built around Properties object that can replace configuration Map required at login
| Field Summary | |
|---|---|
private static java.util.Properties |
ibillingClientProperties
Stores property values. |
private static java.lang.String |
PROPERTIES_PATH
Path to the properties file. |
| Constructor Summary | |
|---|---|
ClientProperties()
|
|
| Method Summary | |
|---|---|
static java.util.Properties |
getJNDIProperties(java.util.Map<java.lang.String,java.lang.Object> config)
Returns JNDI configuration for RMI communication. |
static java.lang.String |
getProperty(java.lang.String name)
Returns value of the defined property; null if not defined. |
static java.lang.String |
getProperty(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> config)
Queries provided map for the property's value; if nothing found, searches in loaded properties; if not found, returns null;. |
static SessionConnection |
getSessionConnection(java.util.Map<java.lang.String,java.lang.Object> config)
Returns instance of SessionConnection based on the values defined in configuration map/properties. |
private static void |
init()
Loads properties defined within properties file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static java.util.Properties ibillingClientProperties
private static final java.lang.String PROPERTIES_PATH
| Constructor Detail |
|---|
public ClientProperties()
| Method Detail |
|---|
private static void init()
public static java.lang.String getProperty(java.lang.String name)
name - êëþ÷
public static java.lang.String getProperty(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> config)
name - the nameconfig - the config
public static java.util.Properties getJNDIProperties(java.util.Map<java.lang.String,java.lang.Object> config)
config - the config
public static SessionConnection getSessionConnection(java.util.Map<java.lang.String,java.lang.Object> config)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException
config - Mapjava.lang.InstantiationException - the instantiation exception
java.lang.IllegalAccessException - the illegal access exception
java.lang.ClassNotFoundException - the class not found exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||