public final class GenericElementHandlerEnviroment extends Object
generic element handlers.
Generic element handler bundles are registered as JasperReports extensions
of type GenericElementHandlerBundle via the central extension
framework (see ExtensionsEnvironment).
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,GenericElementHandlerBundle> |
getBundles() |
GenericElementHandler |
getElementHandler(JRGenericElementType type,
String exporterKey)
Returns a handler for a generic print element type and an exporter
key.
|
static GenericElementHandler |
getHandler(JRGenericElementType type,
String exporterKey)
Deprecated.
Replaced by
getElementHandler(JRGenericElementType, String). |
protected static Map<String,GenericElementHandlerBundle> |
getHandlerBundles()
Deprecated.
Replaced by
getBundles(). |
static GenericElementHandlerEnviroment |
getInstance(JasperReportsContext jasperReportsContext) |
protected Map<String,GenericElementHandlerBundle> |
loadBundles() |
protected static Map<String,GenericElementHandlerBundle> |
loadHandlerBundles()
Deprecated.
Replaced by
loadBundles(). |
public static GenericElementHandlerEnviroment getInstance(JasperReportsContext jasperReportsContext)
public GenericElementHandler getElementHandler(JRGenericElementType type, String exporterKey)
The method first locates a
handler bundle that matches the type
namespace, and then uses
GenericElementHandlerBundle.getHandler(String, String) to
resolve an export handler.
type - the generic element typeexporterKey - the exporter keyJRRuntimeException - if a handler does not exist for the
combination of element type and exporter keyprotected Map<String,GenericElementHandlerBundle> getBundles()
protected Map<String,GenericElementHandlerBundle> loadBundles()
public static GenericElementHandler getHandler(JRGenericElementType type, String exporterKey)
getElementHandler(JRGenericElementType, String).protected static Map<String,GenericElementHandlerBundle> getHandlerBundles()
getBundles().protected static Map<String,GenericElementHandlerBundle> loadHandlerBundles()
loadBundles().Copyright © 2015. All rights reserved.