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

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Apr 19 05:39:49 EDT 2010


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

Pete Muir updated WELD-492:
---------------------------

        Summary: Allow classes implementing Servlet, JSF and EJB interfaces to be Managed Beans  (was: Allow servlet listeners to be managed beans)
    Component/s: Bootstrap and Metamodel API
                     (was: Activities)
    Description: 
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.

  was:
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, allowing servlet listeners to be managed beans (and UIComponents, too?)





> Allow classes implementing Servlet, JSF and EJB interfaces to be Managed Beans
> ------------------------------------------------------------------------------
>
>                 Key: WELD-492
>                 URL: https://jira.jboss.org/jira/browse/WELD-492
>             Project: Weld
>          Issue Type: Bug
>          Components: Bootstrap and Metamodel API
>    Affects Versions: 1.0.1.Final
>            Reporter: Nicklas Karlsson
>             Fix For: 1.0.2.CR1
>
>
> 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/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list