Ticket #69 (closed enhancement: completed)

Opened 20 months ago

Last modified 19 months ago

Allow for hard coded criteria values by using a ${event.ArgName} syntax in the criteria

Reported by: peterfarrell Owned by: kurtwiersma
Priority: major Milestone: Mach-II 1.6.0 beta
Component: framework - caching Version: 1.6.0 - Framework
Keywords: caching criteria CacheHandler Cc:
Blocking: Blocked By:

Description (last modified by peterfarrell) (diff)

Allow for hard coded criteria values by using a ${event.ArgName} syntax in the criteria. This would introduce the idea of scope to the ${} placeholder syntax

Using placeholder with scope (dynamic value for contentId and a static value for type):

<cache id="article" criteria="contentId=${event.contentId},type=print">

This is the same as above (we assume because contentId does not have a static value that we should go into the event for an arg named the same as the criteria key which in this case that is contentId and type is static value):

<cache id="article" criteria="contentId,type=print">

Also we should refactor how the criteria is stored in the CacheHandler from a sorted listed to a sorted array of structs.

Attachments

mylyn-context.zip Download (1.3 KB) - added by kurtwiersma 19 months ago.
mylyn/context/zip

Change History

Changed 20 months ago by peterfarrell

  • description modified (diff)

Changed 19 months ago by kurtwiersma

  • status changed from new to closed
  • resolution set to completed

Changed 19 months ago by kurtwiersma

mylyn/context/zip

Changed 19 months ago by kurtwiersma

Local context for this task.

Add/Change #69 (Allow for hard coded criteria values by using a ${event.ArgName} syntax in the criteria)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.