markmandel/JavaLoader

Have a method to automate switching out the ThreadContextClassLoader

markmandel opened this issue · 1 comments

Switching the ThreadContextClassLoader is such a common task (especially when dealing with XML, that a common method should exist).

Thinking the following:

Javaloader.switchThreadContenxt(method, [classLoader]) : any
Javaloader.switchThreadContenxt(object, methodName, [classLoader]) : any

This could well be written to be able to be mixed into any CFC that is using it (and documented as such).

This switches out the context as it fires the method. Once that works, should make life a lot easier.

Completed.