Load classes for default implementation of scanners
commitd06278d35ce281c3928ada5945127df47e62bcce
authorImran M Yousuf <imyousuf@smartitengineering.com>
Tue, 16 Jun 2009 10:44:30 +0000 (16 16:44 +0600)
committerImran M Yousuf <imyousuf@smartitengineering.com>
Tue, 16 Jun 2009 10:44:30 +0000 (16 16:44 +0600)
tree8f138856917c273f06f9151eccf7e0725da8ca26
parent23b183747aa4d258276ac2471b116427b3eea291
Load classes for default implementation of scanners

So that default instances of scanners are available at all time and the
default instances are dependent on static initializers, the registrar scans
for the default scanners in the "impl" package relative to it and loads the
classes so that the static initializers are loaded.

Also added a test to verify it.

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 [moved from smart-exim/smart-exim-api/src/test/java/com/smartitengineering/exim/AppTest.java with 61% similarity]