Jetspeed 2
  1. Jetspeed 2
  2. JS2-962

Add logical expression support to Spring bean category filtering

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      J2 Spring Configuration

      Description

      Add logical expression support in place of simple CSV alternate list Spring bean category filtering.

        Activity

        Randy Watler created issue -
        Randy Watler made changes -
        Field Original Value New Value
        Fix Version/s 2.2.0 [ 12312318 ]
        Affects Version/s 2.2.0 [ 12312318 ]
        Affects Version/s 2.2.2 [ 12313846 ]
        Randy Watler made changes -
        Summary Add logial expression support to Spring bean category filtering Add logical expression support to Spring bean category filtering
        Hide
        Randy Watler added a comment -

        Logical expressions composed of category names have replaced a simple CSV list of alternates syntax for j2:cat spring bean filtering meta tags. Here is a sample of an 'or' expression replacing the CSV list::

        <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
        <meta key="j2:cat" value="default or cache"/>
        <property name="configLocation" ref="cacheManagerConfig"/>
        </bean>

        Here, "default or cache" replaces the old syntax "default,cache".

        The CSV list syntax is no longer supported: all J2 categorized spring beans must be upgraded.

        The logical expression syntax supports the 'and', 'or', and 'not' operators as well as parens. For example:

        not (categoryA or (categoryB and categoryC) and categoryD)

        Standard logical operator precedence applies.

        SVN commit: 765465

        Show
        Randy Watler added a comment - Logical expressions composed of category names have replaced a simple CSV list of alternates syntax for j2:cat spring bean filtering meta tags. Here is a sample of an 'or' expression replacing the CSV list:: <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"> <meta key="j2:cat" value="default or cache"/> <property name="configLocation" ref="cacheManagerConfig"/> </bean> Here, "default or cache" replaces the old syntax "default,cache". The CSV list syntax is no longer supported: all J2 categorized spring beans must be upgraded. The logical expression syntax supports the 'and', 'or', and 'not' operators as well as parens. For example: not (categoryA or (categoryB and categoryC) and categoryD) Standard logical operator precedence applies. SVN commit: 765465
        Randy Watler made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ate Douma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Randy Watler
            Reporter:
            Randy Watler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development