net.sf.jasperreports.engine.export
Class GenericElementHandlerEnviroment

java.lang.Object
  extended by 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)

Constructor Summary
GenericElementHandlerEnviroment()
           
 
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 getHandlerBundles()
           
protected static java.util.Map loadHandlerBundles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericElementHandlerEnviroment

public GenericElementHandlerEnviroment()
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 getHandlerBundles()

loadHandlerBundles

protected static java.util.Map loadHandlerBundles()


© 2001-2009 Jaspersoft Corporation www.jaspersoft.com