Tapestry
  1. Tapestry
  2. TAPESTRY-1890

Allow Tapestry applications to NOT autoload modules from library

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.11
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Once can see circumstances where autoloading of library modules is not desirable: for instance, to use code from a library without using the services in that module.

      In that case, there should be an option, a web.xml configuration value, to turn off autoloading of modules. The application's module can use explicit @SubModule annotations to bring in exactly what's desired.

        Activity

        Hide
        Paul Cooley added a comment -

        The option for autoloading should also be available outside the web.xml configuration so that this can be done in instances where only the IoC is being used (and not the core).

        Show
        Paul Cooley added a comment - The option for autoloading should also be available outside the web.xml configuration so that this can be done in instances where only the IoC is being used (and not the core).
        Hide
        Massimo Lusetti added a comment -

        Maybe, but if you use it outside you have full control on with modules to pass to the builder...

        Show
        Massimo Lusetti added a comment - Maybe, but if you use it outside you have full control on with modules to pass to the builder...
        Hide
        Davor Hrg added a comment -

        just a reminder,
        if multiple modules specify the same submodule, tapestry will break,
        I haven't checked this with 5.0.6 though

        Show
        Davor Hrg added a comment - just a reminder, if multiple modules specify the same submodule, tapestry will break, I haven't checked this with 5.0.6 though

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development