Class DefaultScriptletFactory
- java.lang.Object
-
- net.sf.jasperreports.engine.scriptlets.DefaultScriptletFactory
-
- All Implemented Interfaces:
ScriptletFactory
public final class DefaultScriptletFactory extends Object implements ScriptletFactory
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_CLASS_LOADING_ERROR
static String
EXCEPTION_MESSAGE_KEY_INSTANCE_LOADING_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultScriptletFactory
getInstance()
List<JRAbstractScriptlet>
getScriplets(ScriptletFactoryContext context)
Returns a list of scriptlet instances to be used during report filling.protected JRAbstractScriptlet
getScriptlet(String scriptletClassName)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_CLASS_LOADING_ERROR
public static final String EXCEPTION_MESSAGE_KEY_CLASS_LOADING_ERROR
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_INSTANCE_LOADING_ERROR
public static final String EXCEPTION_MESSAGE_KEY_INSTANCE_LOADING_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static DefaultScriptletFactory getInstance()
-
getScriplets
public 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 returnnull
if no scriplet is to be used.- Specified by:
getScriplets
in interfaceScriptletFactory
- Throws:
JRException
-
getScriptlet
protected JRAbstractScriptlet getScriptlet(String scriptletClassName) throws JRException
- Throws:
JRException
-
-