[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1015) Cannot disable built-in components
Leszek Kowalski (JIRA)
jira-events at lists.jboss.org
Wed Mar 21 07:20:48 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1015?page=comments#action_12356836 ]
Leszek Kowalski commented on JBSEAM-1015:
-----------------------------------------
OK, sorry for that.
In Seam 1.1.6 there were at least two ways to disable component:
<component class="component.className" installed="false" /> and
<ns:componentName installed="false".
Since 1.2.0 both don't work (or am I missing something?). Do you have any plans to support this functionality in future releases? I need this to disable exceptionFilter which is installed by default (unfortunately I'm forced to use spring managed transactions which doesn't play nicely with seam - http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104430).
> Cannot disable built-in components
> ----------------------------------
>
> Key: JBSEAM-1015
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1015
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.2.0.GA
> Environment: Seam 1.2.0Patch1, Jetty 5.1.12
> Reporter: Leszek Kowalski
>
> Since rev 1.152 of Initialization.java (JIRA-897) it is not possible to disable built-in Seam component in components.xml (using <ns:componentName installed="false").
> Here is problematic code:
> //if this class already has the @Name annotation, the XML element
> //is just adding configuration to the existing component, don't
> //add another ComponentDescriptor (this is super-important to
> //allow overriding!)
> if ( nameAnnotation!=null && nameAnnotation.value().equals(name) )
> {
> Install install = clazz.getAnnotation(Install.class);
> if ( install.value() )
> {
> className = null;
> }
> }
> For all components with @Install annotation className is set to null and installComponentFromXmlElement() cannot create "not-installed ComponentDescriptor".
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list