Package net.sf.jasperreports.engine
Class DefaultJasperReportsContext
java.lang.Object
net.sf.jasperreports.engine.DefaultJasperReportsContext
- All Implemented Interfaces:
JasperReportsContext
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default properties file.static final Stringstatic final Stringstatic final Stringstatic final Stringprotected ConcurrentHashMap<String, String> static final StringThe name of the system property that specifies the properties file name. -
Method Summary
Modifier and TypeMethodDescriptionprotected static PropertiesSets the default properties.<T> List<T> getExtensions(Class<T> extensionType) Returns a list of extension objects for a specific extension type.static DefaultJasperReportsContextgetOwnProperty(String key) getOwnValue(String key) getProperty(String key) Returns the value of the property.protected static StringgetSystemProperty(String propertyName) protected voidLoads the properties.protected voidprotected voidloadSystemProperty(String sysKey, String propKey) voidremoveProperty(String key) voidsetProperty(String key, String value) void
-
Field Details
-
DEFAULT_PROPERTIES_FILE
The default properties file.- See Also:
-
PROPERTIES_FILE
The name of the system property that specifies the properties file name.- See Also:
-
EXCEPTION_MESSAGE_KEY_LOAD_DEFAULT_PROPERTIES_FAILURE
- See Also:
-
EXCEPTION_MESSAGE_KEY_LOAD_PROPERTIES_FAILURE
- See Also:
-
EXCEPTION_MESSAGE_KEY_LOAD_PROPERTIES_FILE_FAILURE
- See Also:
-
EXCEPTION_MESSAGE_KEY_DEFAULT_PROPERTIES_FILE_NOT_FOUND
- See Also:
-
properties
-
-
Method Details
-
getInstance
-
initProperties
protected void initProperties()Loads the properties. -
loadSystemProperties
protected void loadSystemProperties() -
getDefaultProperties
Sets the default properties.- Returns:
- the default properties
- Throws:
JRException
-
getSystemProperty
-
loadSystemProperty
-
getValue
- Specified by:
getValuein interfaceJasperReportsContext
-
getOwnValue
- Specified by:
getOwnValuein interfaceJasperReportsContext
-
setValue
- Specified by:
setValuein interfaceJasperReportsContext
-
getExtensions
Returns a list of extension objects for a specific extension type.- Specified by:
getExtensionsin interfaceJasperReportsContext- Type Parameters:
T- generic extension type- Parameters:
extensionType- the extension type- Returns:
- a list of extension objects
-
getProperty
Returns the value of the property.- Specified by:
getPropertyin interfaceJasperReportsContext- Parameters:
key- the key- Returns:
- the property value
-
getOwnProperty
- Specified by:
getOwnPropertyin interfaceJasperReportsContext
-
setProperty
- Specified by:
setPropertyin interfaceJasperReportsContext
-
removeProperty
- Specified by:
removePropertyin interfaceJasperReportsContext
-
getProperties
- Specified by:
getPropertiesin interfaceJasperReportsContext
-