include statements in xml configuration files?

Cantor, Scott cantor.2 at osu.edu
Fri Feb 19 20:23:23 UTC 2021


On 2/19/21, 3:14 PM, "users on behalf of Wessel, Keith" <users-bounces at shibboleth.net on behalf of kwessel at illinois.edu> wrote:

>    Compiling and building the regex into a custom object... This would essentially be baking it into a jar file added to
> idp.war, correct? If we choose to go this route, does anyone have any pointers on where to start with that?

No. Pattern is a Java class, you don't have to create it.

    <bean id="something" class="java.util.regex.Pattern" factory-method="compile" 
        c:_0="^prefix.*$" />

Calling String.matches() creates a Pattern and calls compile every time you call it.

-- Scott




More information about the users mailing list