public class JvmConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
protected javassist.ClassPool |
pool |
| Constructor and Description |
|---|
JvmConfig(javassist.ClassPool pool) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(java.lang.Class<T> clazz,
java.lang.String prefixName,
boolean optional)
Loads settings for specified interface.
|
protected IValueGetter |
loadProperties() |
protected final org.apache.commons.logging.Log log
protected final javassist.ClassPool pool
protected IValueGetter loadProperties()
public <T> T get(java.lang.Class<T> clazz,
java.lang.String prefixName,
boolean optional)
throws SettingsException
get in interface IConfigT - target interface for holding settings.clazz - target interface class for holding settings.prefixName - override prefix for propertiesoptional - true to return null instead of throwing exception if resource is missing.SettingsException - if interface methods are not properly annotated