3 Replies Latest reply on Oct 20, 2010 6:01 AM by Adam Warski

    Definition of RevisionListener

    Steffen Dienst Newbie

      Hello,

      is there another way to configure the RevisionListener to use for @RevisionEntity? An annotation doesn't allow replacement during unit/integration tests.

        • 1. Re: Definition of RevisionListener
          Adam Warski Master

          Hello,

          no, unfortunately not. But this shouldn't be a problem in unit tests :) And in integration tests, you probably want to use the revision listener?

          --
          Adam

          • 2. Re: Definition of RevisionListener
            Dennis Persson Newbie

            I would also like to this feature.
            I want to keep my RevisionEntity and RevisionListener in separate maven projects, because our
            RevisionListener has a dependency on Spring security.
            But since I need to specify the RevisionListener class in the @RevisionEntity annotation,
            this does not work. If the RevisionListener could be configured with a configuration property
            instead, we would not need to have both the RevisionEntity and the listener in the same project.

            I would also like this feature.

             

            I want to keep my RevisionEntity and RevisionListener in separate maven projects, because our

            RevisionListener has a dependency on Spring security.

             

            But since I need to specify the RevisionListener class in the @RevisionEntity annotation,

            this does not work. If the RevisionListener could be configured with a configuration property

            instead, we would not need to have both the RevisionEntity and the listener in the same project.

             

            / Dennis

             

             

            • 3. Re: Definition of RevisionListener
              Adam Warski Master

              Seems like a good use-case. Maybe you would be willing to contribute a patch?

               

              Adam