markmandel/JavaLoader — Issue #1: Have a method to automate switching out the ThreadContextClassLoader
Author: markmandel
Created: 2012-01-16 03:30:04+00:00
State: open
Labels: enhancement

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.