1. Tapestry
  2. TAPESTRY-1576

Getting access to the created configuration


    • 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:


      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.


        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12567228 ] jira [ 12589981 ]
        Mark Thomas made changes -
        Workflow jira [ 12406323 ] Default workflow, editable Closed status [ 12567228 ]
        Dan Adams made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 5.0.7 [ 12312802 ]
        Dan Adams made changes -
        Assignee Dan Adams [ hagios17 ]
        Dan Adams made changes -
        Field Original Value New Value
        Attachment patch-r547489-get-configuration.txt [ 12359884 ]
        Dan Adams created issue -


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


            • Created: