[seam-issues] [JBoss JIRA] Commented: (SOLDER-45) Support @Veto at package level

Dan Allen (JIRA) jira-events at lists.jboss.org
Mon Nov 29 18:56:09 EST 2010


    [ https://jira.jboss.org/browse/SOLDER-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566040#comment-12566040 ] 

Dan Allen commented on SOLDER-45:
---------------------------------

Change to CoreExtension:

// Support for @Veto at package level
Package pkg = javaClass.getPackage();
if (pkg.isAnnotationPresent(Veto.class))
{
    pat.veto();
    return;
}

> Support @Veto at package level
> ------------------------------
>
>                 Key: SOLDER-45
>                 URL: https://jira.jboss.org/browse/SOLDER-45
>             Project: Seam Solder
>          Issue Type: Feature Request
>          Components: Core
>            Reporter: Dan Allen
>             Fix For: 1.0.0.Beta2
>
>
> It would be useful to be able to veto an entire package of beans. The most typical use case is when you want to veto the JPA entities, which typically reside in the same package. It may be reasonable to add a recursive flag to veto all nested packages as well.
> Veto single package
> @org.jboss.seam.solder.Veto
> package com.acme.model;
> Veto package and descendants
> @org.jboss.seam.solder.Veto(recurse = true)
> package com.acme.model;
> If the recurse feature slows things down to much, we can forgo implementing it.
> Obviously recurse would be meaningless when @Veto is applied to a type, perhaps even considered a deployment error if set to true in that case.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list