Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1015

Cannot disable built-in components

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 1.2.0.GA
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Seam 1.2.0Patch1, Jetty 5.1.12

      Description

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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ljk Leszek Kowalski
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: