本文整理汇总了Java中net.sf.jasperreports.engine.util.JRClassLoader类的典型用法代码示例。如果您正苦于以下问题:Java JRClassLoader类的具体用法?Java JRClassLoader怎么用?Java JRClassLoader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JRClassLoader类属于net.sf.jasperreports.engine.util包,在下文中一共展示了JRClassLoader类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createBuiltinContributors
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
public static List<JRSaveContributor> createBuiltinContributors(JasperReportsContext context,
Locale locale, ResourceBundle resourceBundle)
{
ArrayList<JRSaveContributor> contributors = new ArrayList<JRSaveContributor>(DEFAULT_CONTRIBUTORS.length);
for (String contributorClassName : DEFAULT_CONTRIBUTORS)
{
try
{
Class<?> saveContribClass = JRClassLoader.loadClassForName(contributorClassName);
Constructor<?> constructor = saveContribClass.getConstructor(CONSTRUCTOR_SIGNATURE);
JRSaveContributor saveContrib = (JRSaveContributor) constructor.newInstance(context, locale, resourceBundle);
contributors.add(saveContrib);
}
catch (Exception e)
{
// shouldn't happen, but log anyway
log.warn("Error creating save contributor of type " + contributorClassName, e);
}
}
return contributors;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:22,代码来源:SaveContributorUtils.java
示例2: getValueClass
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
@Override
public Class<?> getValueClass()
{
if (valueClass == null)
{
String className = getValueClassRealName();
if (className != null)
{
try
{
valueClass = JRClassLoader.loadClassForName(className);
}
catch(ClassNotFoundException e)
{
throw new JRRuntimeException(e);
}
}
}
return valueClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:22,代码来源:JRBaseField.java
示例3: getNestedType
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
@Override
public Class<?> getNestedType()
{
if (nestedTypeName != null && nestedType == null)
{
try
{
nestedType = JRClassLoader.loadClassForName(nestedTypeName);
}
catch(ClassNotFoundException e)
{
throw new JRRuntimeException(e);
}
}
return nestedType;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:18,代码来源:JRBaseParameter.java
示例4: getValueClass
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
/**
* @deprecated To be removed.
*/
@Override
public Class<?> getValueClass()
{
if (valueClass == null)
{
String className = getValueClassRealName();
if (className != null)
{
try
{
valueClass = JRClassLoader.loadClassForName(className);
}
catch(ClassNotFoundException e)
{
throw new JRRuntimeException(e);
}
}
}
return valueClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:25,代码来源:JRBaseExpression.java
示例5: getIncrementerFactoryClass
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
@Override
public Class<?> getIncrementerFactoryClass()
{
if (incrementerFactoryClass == null)
{
String className = getIncrementerFactoryClassRealName();
if (className != null)
{
try
{
incrementerFactoryClass = JRClassLoader.loadClassForName(className);
}
catch(ClassNotFoundException e)
{
throw new JRRuntimeException(e);
}
}
}
return incrementerFactoryClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:22,代码来源:JRBaseVariable.java
示例6: getValueClass
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
@Override
public Class<?> getValueClass()
{
if (valueClass == null)
{
String className = getValueClassRealName();
if (className != null)
{
try
{
valueClass = JRClassLoader.loadClassForName(className);
}
catch (ClassNotFoundException e)
{
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_BUCKET_LOAD_ERROR,
(Object[])null,
e);
}
}
}
return valueClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:BaseDataLevelBucket.java
示例7: getValueClass
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
@Override
public Class<?> getValueClass()
{
if (valueClass == null)
{
String className = JRClassLoader.getClassRealName(valueClassName);
if (className != null)
{
try
{
valueClass = JRClassLoader.loadClassForName(className);
}
catch (ClassNotFoundException e)
{
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_MEASURE_VALUE_LOAD_ERROR,
(Object[])null,
e);
}
}
}
return valueClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:BaseDataMeasure.java
示例8: getIncrementerFactoryClass
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
@Override
public Class<?> getIncrementerFactoryClass()
{
if (incrementerFactoryClass == null)
{
String className = JRClassLoader.getClassRealName(incrementerFactoryClassName);
if (className != null)
{
try
{
incrementerFactoryClass = JRClassLoader.loadClassForName(className);
}
catch (ClassNotFoundException e)
{
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_MEASURE_INCREMENTER_LOAD_ERROR,
(Object[])null,
e);
}
}
}
return incrementerFactoryClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:BaseDataMeasure.java
示例9: verifyFormatFactoryClass
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
protected void verifyFormatFactoryClass()
{
String formatFactoryClassName = jasperDesign.getFormatFactoryClass();
if (formatFactoryClassName != null)
{
try
{
Class<?> formatFactoryClass = JRClassLoader.loadClassForName(formatFactoryClassName);
if (!FormatFactory.class.isAssignableFrom(formatFactoryClass))
{
addBrokenRule("The report format factory class is not compatible with " + FormatFactory.class.getName(), jasperDesign);
}
}
catch (ClassNotFoundException e)
{
addBrokenRule(e.toString(), jasperDesign);
}
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:20,代码来源:JRVerifier.java
示例10: getClassLoader
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
/**
*
*/
private ClassLoader getClassLoader()
{
ClassLoader clsLoader = Thread.currentThread().getContextClassLoader();
if (clsLoader != null)
{
try
{
Class.forName(JRJdtCompiler.class.getName(), true, clsLoader);
}
catch (ClassNotFoundException e)
{
clsLoader = null;
//if (log.isWarnEnabled())
// log.warn("Failure using Thread.currentThread().getContextClassLoader() in JRJdtCompiler class. Using JRJdtCompiler.class.getClassLoader() instead.");
}
}
if (clsLoader == null)
{
clsLoader = JRClassLoader.class.getClassLoader();
}
return clsLoader;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:29,代码来源:JRJdtCompiler.java
示例11: getIncrementerFactoryClass
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
@Override
public Class<?> getIncrementerFactoryClass()
{
if (incrementerFactoryClass == null)
{
String className = getIncrementerFactoryClassRealName();
if (className != null)
{
try
{
incrementerFactoryClass = JRClassLoader.loadClassForName(className);
}
catch (ClassNotFoundException e)
{
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_MEASURE_INCREMENTER_CLASS_LOAD_ERROR,
(Object[])null,
e);
}
}
}
return incrementerFactoryClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:JRBaseCrosstabMeasure.java
示例12: getValueClass
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
@Override
public Class<?> getValueClass()
{
if (valueClass == null)
{
String className = getValueClassRealName();
if (className != null)
{
try
{
valueClass = JRClassLoader.loadClassForName(className);
}
catch (ClassNotFoundException e)
{
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_MEASURE_VALUE_CLASS_LOAD_ERROR,
(Object[])null,
e);
}
}
}
return valueClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:JRBaseCrosstabMeasure.java
示例13: getPercentageCalculatorClass
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
@Override
public Class<?> getPercentageCalculatorClass()
{
if (percentageCalculatorClass == null)
{
String className = getPercentageCalculatorClassRealName();
if (className != null)
{
try
{
percentageCalculatorClass = JRClassLoader.loadClassForName(className);
}
catch (ClassNotFoundException e)
{
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_MEASURE_PERCENTAGE_CALCULATOR_CLASS_LOAD_ERROR,
(Object[])null,
e);
}
}
}
return percentageCalculatorClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:JRBaseCrosstabMeasure.java
示例14: getProtectionDomain
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
protected ProtectionDomain getProtectionDomain()
{
ProtectionDomain domain = protectionDomain;
if (domain == null)
{
synchronized (this)
{
domain = protectionDomain;
if (domain == null)
{
ProtectionDomainFactory protectionDomainFactory = JRClassLoader.getProtectionDomainFactory();
domain = protectionDomain = protectionDomainFactory.getProtectionDomain(this);
}
}
}
return domain;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:18,代码来源:JavaScriptClassLoader.java
示例15: getProtectionDomain
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
protected ProtectionDomain getProtectionDomain()
{
ProtectionDomain domain = protectionDomain;
if (domain == null)
{
synchronized (this)
{
domain = protectionDomain;
if (domain == null)
{
ProtectionDomainFactory protectionDomainFactory = JRClassLoader.getProtectionDomainFactory();
domain = protectionDomain = protectionDomainFactory.getProtectionDomain(
Codegen.class.getClassLoader());
}
}
}
return domain;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:19,代码来源:JavaScriptEvaluatorScope.java
示例16: getClassLoader
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
/**
*
*/
private ClassLoader getClassLoader() {
ClassLoader clsLoader = Thread.currentThread().getContextClassLoader();
if (clsLoader != null) {
try {
Class.forName(JRJdtCompiler.class.getName(), true, clsLoader);
} catch (ClassNotFoundException e) {
clsLoader = null;
// if (log.isWarnEnabled())
// log.warn("Failure using Thread.currentThread().getContextClassLoader() in JRJdtCompiler class. Using JRJdtCompiler.class.getClassLoader() instead.");
}
}
if (clsLoader == null)
clsLoader = JRClassLoader.class.getClassLoader();
return clsLoader;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:19,代码来源:JRJdtCompiler.java
示例17: initSaveContributors
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
/**
*
*/
protected void initSaveContributors()
{
final String[] DEFAULT_CONTRIBUTORS =
{
"net.sf.jasperreports.view.save.JRPrintSaveContributor",
"net.sf.jasperreports.view.save.JRPdfSaveContributor",
"net.sf.jasperreports.view.save.JRRtfSaveContributor",
"net.sf.jasperreports.view.save.JROdtSaveContributor",
"net.sf.jasperreports.view.save.JRHtmlSaveContributor",
"net.sf.jasperreports.view.save.JRSingleSheetXlsSaveContributor",
"net.sf.jasperreports.view.save.JRMultipleSheetsXlsSaveContributor",
"net.sf.jasperreports.view.save.JRCsvSaveContributor",
"net.sf.jasperreports.view.save.JRXmlSaveContributor",
"net.sf.jasperreports.view.save.JREmbeddedImagesXmlSaveContributor"
};
for(int i = 0; i < DEFAULT_CONTRIBUTORS.length; i++)
{
try
{
Class saveContribClass = JRClassLoader.loadClassForName(DEFAULT_CONTRIBUTORS[i]);
Constructor constructor = saveContribClass.getConstructor(new Class[]{Locale.class, ResourceBundle.class});
JRSaveContributor saveContrib = (JRSaveContributor)constructor.newInstance(new Object[]{getLocale(), resourceBundle});
saveContributors.add(saveContrib);
}
catch (Exception e)
{
}
}
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:34,代码来源:JRViewer300.java
示例18: getValueClassRealName
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
/**
*
*/
private String getValueClassRealName()
{
if (valueClassRealName == null)
{
valueClassRealName = JRClassLoader.getClassRealName(valueClassName);
}
return valueClassRealName;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:13,代码来源:JRBaseField.java
示例19: getValueClassRealName
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
/**
* @deprecated To be removed.
*/
private String getValueClassRealName()
{
if (valueClassRealName == null)
{
valueClassRealName = JRClassLoader.getClassRealName(valueClassName);
}
return valueClassRealName;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:13,代码来源:JRBaseExpression.java
示例20: getIncrementerFactoryClassRealName
import net.sf.jasperreports.engine.util.JRClassLoader; //导入依赖的package包/类
/**
*
*/
private String getIncrementerFactoryClassRealName()
{
if (incrementerFactoryClassRealName == null)
{
incrementerFactoryClassRealName = JRClassLoader.getClassRealName(incrementerFactoryClassName);
}
return incrementerFactoryClassRealName;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:13,代码来源:JRBaseVariable.java
注:本文中的net.sf.jasperreports.engine.util.JRClassLoader类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论