[weld-issues] [JBoss JIRA] Closed: (WELD-492) Allow classes implementing Servlet, JSF and EJB interfaces to be Managed Beans

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Aug 16 08:46:05 EDT 2010


     [ https://jira.jboss.org/browse/WELD-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WELD-492.
--------------------------

         Assignee: Pete Muir
    Fix Version/s: 1.1.0.BETA1
                       (was: 1.1.0.BETA2)
       Resolution: Done


> Allow classes implementing Servlet, JSF and EJB interfaces to be Managed Beans
> ------------------------------------------------------------------------------
>
>                 Key: WELD-492
>                 URL: https://jira.jboss.org/browse/WELD-492
>             Project: Weld
>          Issue Type: Bug
>          Components: Bootstrap and Metamodel API
>    Affects Versions: 1.0.1.Final
>            Reporter: Nicklas Karlsson
>            Assignee: Pete Muir
>             Fix For: 1.1.0.BETA1
>
>
> Loosen then check
>       return !Extension.class.isAssignableFrom(clazz.getJavaClass()) && 
>              !(clazz.isAnonymousClass() || (clazz.isMemberClass() && !clazz.isStatic())) && 
>              !Reflections.isParamerterizedTypeWithWildcard(javaClass) && 
>              !servletApiAbstraction.SERVLET_CLASS.isAssignableFrom(javaClass) && 
>              !servletApiAbstraction.FILTER_CLASS.isAssignableFrom(javaClass) && 
>              !servletApiAbstraction.SERVLET_CONTEXT_LISTENER_CLASS.isAssignableFrom(javaClass) && 
>              !servletApiAbstraction.HTTP_SESSION_LISTENER_CLASS.isAssignableFrom(javaClass) && 
>              !servletApiAbstraction.SERVLET_REQUEST_LISTENER_CLASS.isAssignableFrom(javaClass) && 
>              !ejbApiAbstraction.ENTERPRISE_BEAN_CLASS.isAssignableFrom(javaClass) && 
>              !jsfApiAbstraction.UICOMPONENT_CLASS.isAssignableFrom(javaClass) && 
>              (hasSimpleWebBeanConstructor(clazz) || InstantiatorFactory.useInstantiators()); 
> in AbstractBeanDeployer to only prohibit classes explicitly mentioned in the spec.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list