[seam-issues] [JBoss JIRA] Commented: (SEAMSOCIAL-14) Avoid using an Enum to qualify services

Antoine Sabot-Durand (JIRA) jira-events at lists.jboss.org
Sat Jun 18 17:19:23 EDT 2011


    [ https://issues.jboss.org/browse/SEAMSOCIAL-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12609591#comment-12609591 ] 

Antoine Sabot-Durand commented on SEAMSOCIAL-14:
------------------------------------------------

@RelatedTo should disapear and a new meta annotation need to be created @RelatedToService. It will be used to annotate service qualifier to help distinguish them for other qualifier.

We also need to create an extension that will create the list of service at the initialisation of CDI container. 

> Avoid using an Enum to qualify services
> ---------------------------------------
>
>                 Key: SEAMSOCIAL-14
>                 URL: https://issues.jboss.org/browse/SEAMSOCIAL-14
>             Project: Seam Social
>          Issue Type: Enhancement
>          Components: OAuth Core
>            Reporter: Antoine Sabot-Durand
>            Assignee: Antoine Sabot-Durand
>   Original Estimate: 3 days
>  Remaining Estimate: 3 days
>
> Today the @RelatedTo qualifier use an Enum type to choose the right service (i.e @RelatedTo(Service.Twitter)). This solution is too closed and could be a problem if someone need to extend the framework by adding a new Service since one need to add a value in the Service Enum type...

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