Problems with initialization of a ustom AbstractDataRouter

Developers
2014-07-10
2014-07-12
  • 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.

    Thanks!

     

Log in to post a comment.