public class DefaultJasperReportsContext extends java.lang.Object implements JasperReportsContext
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_PROPERTIES_FILE
The default properties file.
|
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String> |
properties |
static java.lang.String |
PROPERTIES_FILE
The name of the system property that specifies the properties file name.
|
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.Properties |
getDefaultProperties()
Sets the default properties.
|
<T> java.util.List<T> |
getExtensions(java.lang.Class<T> extensionType)
Returns a list of extension objects for a specific extension type.
|
static DefaultJasperReportsContext |
getInstance() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
java.lang.String |
getProperty(java.lang.String key)
Returns the value of the property.
|
protected static java.lang.String |
getSystemProperty(java.lang.String propertyName) |
java.lang.Object |
getValue(java.lang.String key) |
protected void |
initProperties()
Loads the properties.
|
protected void |
loadSystemProperties() |
protected void |
loadSystemProperty(java.lang.String sysKey,
java.lang.String propKey) |
void |
removeProperty(java.lang.String key) |
void |
setProperty(java.lang.String key,
java.lang.String value) |
void |
setValue(java.lang.String key,
java.lang.Object value) |
public static final java.lang.String DEFAULT_PROPERTIES_FILE
public static final java.lang.String PROPERTIES_FILE
protected volatile java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String> properties
public static DefaultJasperReportsContext getInstance()
protected void initProperties()
protected void loadSystemProperties()
protected static java.util.Properties getDefaultProperties()
throws JRException
JRExceptionprotected static java.lang.String getSystemProperty(java.lang.String propertyName)
protected void loadSystemProperty(java.lang.String sysKey,
java.lang.String propKey)
public java.lang.Object getValue(java.lang.String key)
getValue in interface JasperReportsContextpublic void setValue(java.lang.String key,
java.lang.Object value)
setValue in interface JasperReportsContextpublic <T> java.util.List<T> getExtensions(java.lang.Class<T> extensionType)
getExtensions in interface JasperReportsContextT - generic extension typeextensionType - the extension typepublic java.lang.String getProperty(java.lang.String key)
getProperty in interface JasperReportsContextkey - the keypublic void setProperty(java.lang.String key,
java.lang.String value)
setProperty in interface JasperReportsContextpublic void removeProperty(java.lang.String key)
removeProperty in interface JasperReportsContextpublic java.util.Map<java.lang.String,java.lang.String> getProperties()
getProperties in interface JasperReportsContext© 2001-2010 Jaspersoft Corporation www.jaspersoft.com