[JBoss JIRA] Created: (WELD-492) Allow servlet listeners to be managed beans
by Nicklas Karlsson (JIRA)
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
15 years, 7 months
[JBoss JIRA] Created: (WELD-555) Pluggable validation
by Kabir Khan (JIRA)
Pluggable validation
--------------------
Key: WELD-555
URL: https://jira.jboss.org/browse/WELD-555
Project: Weld
Issue Type: Feature Request
Components: Weld SPI
Reporter: Kabir Khan
>From Weld Dev mailing list:
--------------------------------------------
Hey Kabir,
Some time ago we decided to move the weld-int stuff (whatever is specific to JBAS) into JBAS itself, for making the integration between the two a bit more straightforward.
So the stuff that is now inside JBAS is a copy of the former weld-int project (with the poms modified to match JBAS). I made some changes to JSF stuff and JNDI registration.
Following a comment made by Ales, the deployer-mc-int stuff stayed in its old location (as it is not currently packaged inside the JBAS distro), and is mainly untouched. Since it seems to depend on other modules, it may make sense to extract the common stuff and make it a dependency to both the JBAS weld-int and the extraneous mc-weld-int. For now, I just made sure that the clone works, and perhaps this is a step that is hard to complete before M4.
I think that you can use the deployer-mc-int as is for now, if you're not affected by the current duplication issues. Or, let me know if I can help working something out.
Marius
On 10-06-11 9:42 AM, Kabir Khan wrote:
I am about to revisit the MC/Weld integration for Ales's and my talk at JUDCon.
The work was done under https://svn.jboss.org/repos/jbossas/projects/weld-int/trunk, more specificially under https://svn.jboss.org/repos/jbossas/projects/weld-int/trunk/deployer-mc-int.
Updating AS trunk now I see a new weld-int project with the following sub directories;
assembly/
deployer/
ejb/
pom.xml/
webtier/
In https://svn.jboss.org/repos/jbossas/projects/weld-int/trunk I see
assembly/
deployer/
deployer-mc-int/
ejb/
pom.xml/
webtier/
The https://svn.jboss.org/repos/jbossas/projects/weld-int/trunk/deployer-mc-int are working, and the next step is to try this out in AS, but I am confused how the two locations relate to each other and where my deployer-mc-int/ stuff should go?
Cheers,
Kabir
_______________________________________________
weld-dev mailing list
weld-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-dev
--
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
15 years, 7 months
[JBoss JIRA] Created: (WELD-459) A final class interceptor or an interceptor class with a final method not detected as a definition error
by Ondrej Skutka (JIRA)
A final class interceptor or an interceptor class with a final method not detected as a definition error
--------------------------------------------------------------------------------------------------------
Key: WELD-459
URL: https://jira.jboss.org/jira/browse/WELD-459
Project: Weld
Issue Type: Bug
Components: Interceptors and Decorators
Affects Versions: 1.0.1.Final
Reporter: Ondrej Skutka
Spec says:
If the bean class of a managed bean declares or inherits a class level interceptor binding or a stereotype with interceptor
bindings, it must not be declared final, or have any non-static, non-private, final methods. If a managed bean has a class-
level interceptor binding and is declared final or has a non-static, non-private, final method, the container automatically
detects the problem and treats it as a definition error.
If a non-static, non-private method of a bean class of a managed bean declares a method level interceptor binding, neither
the method nor the bean class may be declared final. If a non-static, non-private, final method of a managed bean has a
method level interceptor binding, the container automatically detects the problem and treats it as a definition error.
org.jboss.jsr299.tck.tests.interceptors.definition.broken.finalClassInterceptor.FinalClassClassLevelInterceptorTest
org.jboss.jsr299.tck.tests.interceptors.definition.broken.finalClassInterceptor.FinalClassMethodLevelInterceptorTest
org.jboss.jsr299.tck.tests.interceptors.definition.broken.finalClassInterceptor.FinalMethodClassLevelInterceptorTest
org.jboss.jsr299.tck.tests.interceptors.definition.broken.finalClassInterceptor.FinalMethodMethodLevelInterceptorTest
In the TCK trunk
--
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
15 years, 7 months