You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2013/05/26 22:55:20 UTC

[jira] [Updated] (DELTASPIKE-350) re-visit @Matches

     [ https://issues.apache.org/jira/browse/DELTASPIKE-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek updated DELTASPIKE-350:
----------------------------------------

    Fix Version/s: 0.5
    
> re-visit @Matches
> -----------------
>
>                 Key: DELTASPIKE-350
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-350
>             Project: DeltaSpike
>          Issue Type: New Feature
>    Affects Versions: 0.4
>            Reporter: Gerhard Petracek
>             Fix For: 0.5
>
>
> possible use-cases:
> @CustomStaticQuota(perDay = 10000) //gets picked up via meta-data-inheritance
> interface Pages
> {
>     interface Public extends ViewConfig, ViewQuota.PDF, ViewQuota.XML, ZIP
>     {
>         @CustomUrlMapping("/item/#{item}/")
>         class Item implements Public
>         {
>         }
>     }
>     //folder - because it's of type ViewConfig
>     interface Private extends ViewConfig
>     {
>     }
>     interface ViewQuota //technically not(!) needed (see ZIP) - just for better grouping
>     {
>         @Matches(pattern = "*.xml")
>         interface XML
>         {
>         }
>         @Matches(pattern = "*.pdf")
>         @CustomStaticQuota(perDay = 100) //overrule quota
>         interface PDF
>         {
>         }
>     }
>     @Matches(pattern = "*.zip")
>     interface ZIP
>     {
>     }
> }
> @ViewMetaData
> @interface CustomStaticQuota
> {
>     int perDay();
> }
> @ViewMetaData
> @interface CustomUrlMapping
> {
>     String value();
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira