[seam-issues] [JBoss JIRA] Created: (SOLDER-67) Add @Mock alternative stereotype

Dan Allen (JIRA) jira-events at lists.jboss.org
Thu Jan 20 13:28:49 EST 2011


Add @Mock alternative stereotype
--------------------------------

                 Key: SOLDER-67
                 URL: https://issues.jboss.org/browse/SOLDER-67
             Project: Seam Solder
          Issue Type: Feature Request
          Components: Core
    Affects Versions: 3.0.0.Beta1
            Reporter: Dan Allen


Naturally, each application is going to have it's own set of stereotypes and qualifiers, some of which will be used for project stage or target environment control. But then there are those roles that are so universal, that they would find a fit in nearly every application, like the @Model stereotype provided by the CDI spec. Solder should provide a @Mock alternative stereotype that can be used to control deployment of development-time beans. @Mock is even cited in the CDI api.

Providing a @Mock annotation centrally is beneficial to example projects and helps to raise awareness of the utility of a bean alternative.

@Alternative 
@Stereotype 
@Target(TYPE) 
@Retention(RUNTIME) 
public @interface Mock {}

-- 
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