ResolverUtil with GroovyClassLoader
-----------------------------------
Key: STS-910
URL: http://www.stripesframework.org/jira/browse/STS-910
Project: Stripes
Issue Type: Improvement
Components: ActionBean Dispatching
Reporter: Alessio Stalla
Priority: Minor
Attachments: ResolverUtil.java
It would be nice if ResolverUtil could be used out of the box with
GroovyClassLoader (or any other "strange" classloader that is able to load
classes out of resources that are neither .class nor .jar files).
Currently, only one thing prevents that from happening: ResolverUtil is
hardcoded to skip resources not ending in .class. We ended up extending
ResolverUtil to lift that limitation; see the attached class.
Our ResolverUtil also fixes another minor issue: while the ResolverUtil in
Stripes has a setClassLoader method, it is not very useful, since the VFS does
not use the same classloader (being a singleton, it relies on the thread's
context classloader). So you have to set the thread's context classloader
anyway before calling find(). We have overridden find() so that it does it for
you.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development