Jump to content
We've recently updated our Privacy Statement, available here ×

IReportCompiler refactor suggestion


2006 IR Open Discussion

Recommended Posts

By: Cameron Taggart - ctaggart

IReportCompiler refactor suggestion

2006-07-06 14:35

I created a custom datasource (ireport connection). It would be nice if what I am trying to do could be packaged into a plugin. It makes me wonder if OSGi could be of use.

 

... back to reality ...

 

I think IReportCompiler can be refactored by encapsulating the fill report logic in IReportConnection. Just add a method IReportConnection.fillReport(String filename, Map parameters) which returns JasperPrint.

 

This is around line 711 in IReportCompiler, just after hm = (HashMap)connection.getSpecialParameters( hm );.

 

cheers,

Cameron

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...