net.sf.jasperreports.engine.export
Class GenericElementHandlerEnviroment

java.lang.Object
  extended by net.sf.jasperreports.engine.export.GenericElementHandlerEnviroment

public final 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 4595 2011-09-08 15:55:10Z teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)

Method Summary
static GenericElementHandler getHandler(JRGenericElementType type, java.lang.String exporterKey)
          Returns a handler for a generic print element type and an exporter key.
protected static java.util.Map<java.lang.String,GenericElementHandlerBundle> getHandlerBundles()
           
protected static java.util.Map<java.lang.String,GenericElementHandlerBundle> loadHandlerBundles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 type
exporterKey - 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<java.lang.String,GenericElementHandlerBundle> getHandlerBundles()

loadHandlerBundles

protected static java.util.Map<java.lang.String,GenericElementHandlerBundle> loadHandlerBundles()


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com