[weld-issues] [JBoss JIRA] Created: (WELD-492) Allow servlet listeners to be managed beans

Nicklas Karlsson (JIRA) jira-events at lists.jboss.org
Mon Apr 19 05:23:49 EDT 2010


Allow servlet listeners to be managed beans
-------------------------------------------

                 Key: WELD-492
                 URL: https://jira.jboss.org/jira/browse/WELD-492
             Project: Weld
          Issue Type: Bug
          Components: Activities
    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, allowing servlet listeners to be managed beans (and UIComponents, too?)



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