net.sf.jasperreports.engine.export
Class GenericElementHandlerEnviroment
java.lang.Object
net.sf.jasperreports.engine.export.GenericElementHandlerEnviroment
public class GenericElementHandlerEnviroment
- extends java.lang.Object
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
).
- Version:
- $Id: GenericElementHandlerEnviroment.java 3033 2009-08-27 11:46:22Z teodord $
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericElementHandlerEnviroment
public GenericElementHandlerEnviroment()
getHandler
public static GenericElementHandler getHandler(JRGenericElementType type,
java.lang.String exporterKey)
- 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 uses
GenericElementHandlerBundle.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
getHandlerBundles
protected static java.util.Map getHandlerBundles()
loadHandlerBundles
protected static java.util.Map loadHandlerBundles()
© 2001-2009 Jaspersoft Corporation www.jaspersoft.com