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/10/27 21:51:30 UTC
[jira] [Resolved] (DELTASPIKE-350) re-visit @Matches
[ https://issues.apache.org/jira/browse/DELTASPIKE-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek resolved DELTASPIKE-350.
-----------------------------------------
Resolution: Later
Fix Version/s: (was: 1.0.1)
> 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
>
> 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 was sent by Atlassian JIRA
(v6.1#6144)