Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev]CheckIn: Fix Bugzilla Bug ---160889 IReportContext not in BIRT viewer classpath, preventing context access from chart event handler

Title: [birt-dev]CheckIn: Fix Bugzilla Bug ---160889 IReportContext not in BIRT viewer classpath, preventing context access from chart event handler

- Summary:

- Bugzilla Bug (s) Resolved:
160889 IReportContext not in BIRT viewer classpath, preventing context access from chart event handler


- Description:
Application class loader is used dynamic load the user defined classes in BIRT engine. The chart needs it to load the user defined event handler. Passes it to the extended item presetnation/generation, so the extended item can load the user defined classes correctly.

1. add setApplicationClassLoader() to IReportItemGeneration & IReportItemPresentaiton.
2. add the setApplicationClassLoader() implementation to ReportItemGenreationBase and ReportItemPresentationBase.
3. The extened item can get the setted application class loader from the member field of report item genration/presetnation base.

- Tests Description  :

Manully test

- Notes to Build Team:
Check into both the 2.1.2 and main branch.


- Notes to Developers:

- Notes to QA:  

 
- Notes to Documentation:  

- Files Edited:

cvs ci -m "set application classloader to the extended item for loading the user defined classes." -l "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExtendedItemExecutor.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/extension/IReportItemPresentation.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/extension/ReportItemGenerationBase.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/LocalizedContentVisitor.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/extension/ReportItemPresentationBase.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/extension/IReportItemGeneration.java"

- Files Added:

- Files Deleted


-Wei Yan



Back to the top