incubator-deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DELTASPIKE-350) re-visit @Matches
Date Sun, 26 May 2013 19:55:20 GMT

    [ https://issues.apache.org/jira/browse/DELTASPIKE-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13667381#comment-13667381
] 

Mark Struberg commented on DELTASPIKE-350:
------------------------------------------

Gerhard, could you please elaborate? What do you think needs to be done before the 0.4 release?
Or can it wait until after?
                
> 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-incubating
>            Reporter: Gerhard Petracek
>
> 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

Mime
View raw message