Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-799

Make HtmlMacroComponent#getAutowireFlag() protected instance method to allow custom macro components to decide which autowiring mode to use

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.0.0
    • Components

      IMHO this is not good decision to make HtmlMacroComponent#getAutowireFlag() method static and private. This only allows to control macro components autowiring mode GLOBALLY. And what if I write or get some components library which includes macro components which expects different autowire mode than my project's global library setting? In this case custom macro component will fail to wire inner components/forwards. I think making this method instance method and marking it as protected would do the trick. Default implementation may stay the same as it is now, however, different macro components would have an opportunity to control autowiring mode explicitly.
      P.S. Is there any other way to achieve mixed autowiring mode for macro components?

            Unassigned Unassigned
            Serzhas Serzhas
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: