Fix registrar item initialization
commitadcec43706f3c52be307c827a05cf8d2b227ded8
authorImran M Yousuf <imyousuf@smartitengineering.com>
Thu, 20 Aug 2009 00:05:32 +0000 (20 07:05 +0700)
committerImran M Yousuf <imyousuf@smartitengineering.com>
Thu, 20 Aug 2009 00:05:32 +0000 (20 07:05 +0700)
tree4427e6ab2e34ab0c682a2620b89e760214c83ba8
parentca29b301338da32bb143e8d2c622864ce8dd8067
Fix registrar item initialization

Previously when the item was initializing it was checking for getInstance
method to be static using isSythetic method which is wrong, now it is fixed
by using Modifier.isStatic instead.

Test case was missing for these case thus added one for that as well, to
ensure that this does not go unchecked in future.

Signed-off-by: Imran M Yousuf <imyousuf@smartitengineering.com>
smart-exim/smart-exim-api/src/main/java/com/smartitengineering/exim/ConfigRegistrar.java
smart-exim/smart-exim-api/src/test/java/com/smartitengineering/exim/ConfigRegistrarTest.java