[
http://issues.apache.org/jira/browse/JEXL-13?page=comments#action_12456617 ]
Douglas Rand commented on JEXL-13:
----------------------------------
What about a very simple patch to Introspector.java? The following meets my
needs, albeit it might not meet the needs of someone who wanted multiple
uberspects in different applications that shared a single VM.
/**
* Replace the uberspect with a user defined uberspect
* @param uber
*/
public static void setUperspect(Uberspect uber)
{
if (uber == null)
{
throw new IllegalArgumentException("uber may not be null");
}
uberSpect = uber;
Log logger = LogFactory.getLog(Introspector.class);
((UberspectLoggable) uberSpect).setRuntimeLogger(logger);
}
> [jexl] Make JEXL allow for an Uberspect plugin
> ----------------------------------------------
>
> Key: JEXL-13
> URL: http://issues.apache.org/jira/browse/JEXL-13
> Project: Commons JEXL
> Issue Type: Improvement
> Affects Versions: 1.0
> Environment: Operating System: All
> Platform: All
> Reporter: Doug Rand
> Priority: Minor
> Fix For: 2.0
>
> Attachments: jexl-patch.txt, patch.txt
>
>
> Unlike Velocity, JEXL does not allow for the Uberspect object to be replaced
> at
> runtime. By allowing replacement JEXL can be extended for Java 1.5 or other
> desireable functionality. I have a patch available for this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]