net.sf.jasperreports.governors

## Class GovernorFactory

- java.lang.Object
- - net.sf.jasperreports.governors.GovernorFactory

- All Implemented Interfaces:
    ScriptletFactory

      public final class GovernorFactory
      extends java.lang.Object
      implements ScriptletFactory

  Version:
    $Id: GovernorFactory.java 6704 2013-11-08 12:29:32Z teodord $
  Author:
    Teodor Danciu (teodord@users.sourceforge.net)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static GovernorFactory` | `getInstance()`
    `java.util.List<JRAbstractScriptlet>` | `getScriplets(ScriptletFactoryContext context)` Returns a list of scriptlet instances to be used during report filling.
    `protected JRAbstractScriptlet` | `getScriptlet(java.lang.String scriptletClassName)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getInstance

          public static GovernorFactory getInstance()

    - #### getScriplets

          public java.util.List<JRAbstractScriptlet> getScriplets(ScriptletFactoryContext context)
                                                           throws JRException

      Description copied from interface: `ScriptletFactory`
      Returns a list of scriptlet instances to be used during report filling. This method can return `null` if no scriplet is to be used.
      Specified by:
        `getScriplets` in interface `ScriptletFactory`
      Throws:
        `JRException`

    - #### getScriptlet

          protected JRAbstractScriptlet getScriptlet(java.lang.String scriptletClassName)
                                              throws JRException

      Throws:
        `JRException`

© 2001-2010 Jaspersoft Corporation www.jaspersoft.com