Problems with initialization of a ustom AbstractDataRouter

  • Spencer Herzberg

    I am trying to implement a custom AbstractDataRouter and need access to the current symmetricDialect. Basically, I want to clone the LookupTableRouter with some modifications and cant get at the current symmetricDialect because the my bean is defined in symmetric-extensions.xml as:

    <bean id="querytable" class="routers.QueryTableRouter" lazy-init="false"></bean>

    Any ideas?

  • Chris Henson

    Chris Henson - 2014-07-11

    Implement ISymmetricEngineAware. An instance of the current ISymmetricEngine will be injected and you will have access to the dialect and all of the services.

  • Spencer Herzberg

    Awesome! I missed that in the docs. Worked great.



Log in to post a comment.