Class GenericElementHandlerEnviroment
java.lang.Object
net.sf.jasperreports.engine.export.GenericElementHandlerEnviroment
A class that provides access to
generic element handlers
.
Generic element handler bundles are registered as JasperReports extensions
of type GenericElementHandlerBundle
via the central extension
framework (see ExtensionsEnvironment
).
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected List
<GenericElementHandlerBundle> getElementHandler
(JRGenericElementType type, String exporterKey) Returns a handler for a generic print element type and an exporter key.getInstance
(JasperReportsContext jasperReportsContext) protected List
<GenericElementHandlerBundle>
-
Field Details
-
EXCEPTION_MESSAGE_KEY_HANDLERS_NOT_FOUND_FOR_NAMESPACE
- See Also:
-
-
Method Details
-
getInstance
public static GenericElementHandlerEnviroment getInstance(JasperReportsContext jasperReportsContext) -
getElementHandler
Returns a handler for a generic print element type and an exporter key.The method first locates a
handler bundle
that matches the type namespace, and then usesGenericElementHandlerBundle.getHandler(String, String)
to resolve an export handler.- Parameters:
type
- the generic element typeexporterKey
- the exporter key- Returns:
- a generic print element handler
- Throws:
JRRuntimeException
- if a handler does not exist for the combination of element type and exporter key
-
getBundles
-
loadBundles
-