Add config inheritence for domain objects
commit19830fb4677a97436db21b878c90fcf339810251
authorImran M Yousuf <imyousuf@smartitengineering.com>
Sun, 12 Jul 2009 09:58:04 +0000 (12 16:58 +0700)
committerImran M Yousuf <imyousuf@smartitengineering.com>
Sun, 12 Jul 2009 09:58:04 +0000 (12 16:58 +0700)
treebe3404eb7d791a572dcbbdd61a76bdb1e80e6e0f
parent10deb3930b1b22d506087464df7433b3c6229d65
Add config inheritence for domain objects

A config for a class will be valid if the domain is a valid @ResourceDomain
annotated class or if its parent class has a config (recursive) or if any
of its directly implemented interfaces are @ResourceDomain annotated valid
domain class; in case of multiple valid interface domain objects the config
domain class will be chosen using (priority annotation attribute +
classname) in descending order, i.e. the top most.

Added test case for inherting config from parent class hierarchy or
directly implemented interfaces.

Signed-off-by: Imran M Yousuf <imyousuf@smartitengineering.com>
smart-exim/smart-exim-api/src/main/java/com/smartitengineering/exim/impl/DefaultAnnotationConfigScanner.java
smart-exim/smart-exim-api/src/test/java/com/smartitengineering/exim/impl/DefaultAnnotationConfigScannerTest.java
smart-exim/smart-exim-api/src/test/java/com/smartitengineering/exim/impl/data/IResourceImpl.java [new file with mode: 0644]
smart-exim/smart-exim-api/src/test/java/com/smartitengineering/exim/impl/data/IState.java [new file with mode: 0644]
smart-exim/smart-exim-api/src/test/java/com/smartitengineering/exim/impl/data/InheritedResource.java [new file with mode: 0644]
smart-exim/smart-exim-api/src/test/java/com/smartitengineering/exim/impl/data/MultiResourceImpl.java [new file with mode: 0644]