Results 1 to 3 of 3

Thread: Reverse lookup in Dao for the methods from its DaoImpl

  1. #1
    Join Date
    Jun 2011
    Posts
    14

    Default Reverse lookup in Dao for the methods from its DaoImpl

    Hello,

    If Dao defines a method, its DaoImpl must implement it; otherwise STS will show an error. However DaoImpl could have some extra methods that are not present in its Dao.

    Is there any reverse lookup in STS to check which methods from DaoImpl are present in the corresponding Dao and which are not?

    Regards,
    Paresh
    PS: I'm using SpringSource Tool Suite 2.7.1.RELEASE on a Mac OS X 10.6.8.

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,640

    Default

    Hey Paresh!

    We don't have additional analysis tools for this kind of things, but the basic Eclipse Java tooling already provides some nice features that might help you.
    As long as there is a interface-implementation-relationship between these two, the tooling will show you which methods in the implementation are implementing something from the interface and which are not. In addition to that you could use the @Override annotation with Java6 to make sure that your methods in the implementation are really implementing something from the interface.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  3. #3
    Join Date
    Jun 2011
    Posts
    14

    Default

    Thanks Martin!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •