[jboss-jira] [JBoss JIRA] (WFLY-6293) <ejb-name> tag in <interceptor-binding> should support regular expression usages

David Lloyd (JIRA) issues at jboss.org
Fri Feb 26 09:27:00 EST 2016


    [ https://issues.jboss.org/browse/WFLY-6293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13168995#comment-13168995 ] 

David Lloyd commented on WFLY-6293:
-----------------------------------

Note that this usage isn't what is traditionally defined as "regular expressions"; more like advanced wildcards.  Regular expressions would be incompatible with the raw "*" usage.  But you could use traditional shell-style wildcard syntax: http://tldp.org/LDP/GNU-Linux-Tools-Summary/html/x11655.htm

Such wildcard syntax can easily be transformed into a regular expression using substitution, and then applied to matching EJB names thusly.

> <ejb-name> tag in <interceptor-binding> should support regular expression usages
> --------------------------------------------------------------------------------
>
>                 Key: WFLY-6293
>                 URL: https://issues.jboss.org/browse/WFLY-6293
>             Project: WildFly
>          Issue Type: Feature Request
>          Components: EJB
>            Reporter: Wolf-Dieter Fink
>            Assignee: Stuart Douglas
>
> From the ejb specification the only possibility is to use the full EJB name or the wildcard "*".
> * If the application is too large with many hundreds or thousand ejbs then it is complex to define the interceptor individually for number of beans having a common name pattern.
> The <ejb-name> element in <interceptor-binding> should support regular expression usages. Like following via   "ejb-jar.xml" or using "jboss-ejb3.xml":
> {code} 
>             <interceptor-binding>
>                 <ejb-name>Intercepted*Bean</ejb-name>                                             
>                 <interceptor-class>interceptors.InterceptorOne</interceptor-class>
>             </interceptor-binding>
>             <interceptor-binding>
>                 <ejb-name>[AB]*Bean</ejb-name>                                             
>                 <interceptor-class>interceptors.InterceptorOne</interceptor-class>
>             </interceptor-binding>
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list