The spring framework has many classes with uses regex.

If it's running in jdk 1.4 or higher, those classes use the jdk regex.
If not, they require oro.

RegExpBasedFilterInvocationDefinitionMap always requires the oro regex
engine.
Can it be improved so it behaves like RegexpMethodPointcutAdvisor:

        protected AbstractRegexpMethodPointcut createPointcut() {
                if (this.perl5 || JdkVersion.getMajorJavaVersion() < 
JdkVersion.JAVA_14) {
                        logger.debug("Creating Perl5RegexpMethodPointcut 
(Jakarta ORO needs
to be available)");
                        // needs Jakarta ORO on the classpath
                        return new Perl5RegexpMethodPointcut();
                }
                else {
                        logger.debug("Creating JdkRegexpMethodPointcut");
                        // needs to run on JDK >= 1.4
                        return new JdkRegexpMethodPointcut();
                }
        }

--
With kind regards,
Geoffrey De Smet



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to