Uploaded image for project: 'Tamaya'
  1. Tamaya
  2. TAMAYA-253

Make raw evaluation of policy pluggable.

    XMLWordPrintableJSON

Details

    Description

      Make the evaluation part for the raw properties (before they enter the filter chain) pluggable. The interface proposed (including a default implementation in core/spi-support):

      /**
       * Component SPI which encapsulates the evaluation of a single or full <b>raw</b>value
       * for a {@link ConfigurationContext}.
       */
      public interface ConfigValueEvaluator {
      
          /**
           * Evaluates single value using a {@link ConfigurationContext}.
           * @param key the config key, not null.
           * @param context the context, not null.
           * @return the value, or null.
           */
          PropertyValue evaluteRawValue(String key, ConfigurationContext context);
      
          /**
           * Evaluates all property values from a {@link ConfigurationContext}.
           * @param context the context, not null.
           * @return the value, or null.
           */
          Iterable<PropertyValue> evaluateRawValues(ConfigurationContext context);
      
      }
      

      Attachments

        Activity

          People

            anatole Anatole Tresch
            anatole Anatole Tresch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified