Tapestry
  1. Tapestry
  2. TAPESTRY-1576

Getting access to the created configuration

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.0.7
    • Component/s: tapestry-hibernate
    • Labels:
      None

      Description

      I want to create a maven plugin that will load up an ioc registry, take the configuration that includes all of the contributed entities, and then write the configuration out to a file. This is so that other tools, such as the hibernate tools we use to create the tables from the hibernate config, can create the tables for all the entities both from the application and contributions. Otherwise I'd have to somehow get a list of the entities that have been contributed (which I could do with a debugger don't I don't know any other way) and create one myself. But I'd much rather have a tool do it for me.

      One way we could do this would be to simply store the configuration in HibernateSessionSourceImpl and then add an accessor for it in HibernateSessionSource. If we wanted to be really safe that the object would be immutable we could wrap it in a decorator that would throw UnsupportedOperationExceptions in all of the methods that change state.

      I'd be willing to go ahead and create a patch for this if the approach is accepted. Just let me know.

        Activity

        Hide
        Dan Adams added a comment -

        This patch implements the approach I suggested in the ticket description.

        Show
        Dan Adams added a comment - This patch implements the approach I suggested in the ticket description.

          People

          • Assignee:
            Dan Adams
            Reporter:
            Dan Adams
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development