https://issues.apache.org/bugzilla/show_bug.cgi?id=47373
--- Comment #21 from Jesse Glick <[email protected]> 2009-06-25 15:11:57 PST --- To your first concern - I guess Resource could use the adapter pattern: Resource r = ...; ZipEntryResource r2 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=2 ) = r.as(ZipEntryResource.class); if (r2 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=2 ) != null) ...; (This is better than instanceof/casts because you can still create a generic proxy Resource impl without static knowledge of all possible extensions.) To your second concern - could perhaps be solved using an external "session" object which can keep track of open ZIPs and close them when the task is done. Anyway, I agree that going this route would involve some nontrivial changes and the risk of API incompatibility. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
