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

Lincoln Baxter III commented on SEAMFACES-65:
---------------------------------------------


public class FacesAnnotationsAdapterExtension implements Extension
...

   public void failIfJsfManagedBeanAnnotationPresent(@Observes final 
ProcessBean<?> bean)
   {
      if 
(bean.getAnnotated().isAnnotationPresent(javax.faces.bean.ManagedBean.class))
      {
         bean.addDefinitionError(new RuntimeException("Use of 
@javax.faces.bean.ManagedBean is forbidden. Please use @javax.inject.Named 
instead."));
      }
   }

> Should be able to disable deploy-time halt on detection of 
> java.faces.bean.ManagedBean annotated classes
> --------------------------------------------------------------------------------------------------------
>
>                 Key: SEAMFACES-65
>                 URL: https://issues.jboss.org/browse/SEAMFACES-65
>             Project: Seam Faces
>          Issue Type: Feature Request
>            Reporter: Lincoln Baxter III
>            Priority: Minor
>
> Some users may find this behavior overly restrictive, particularly when 
> migrating existing applications.

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

        
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to