@Documented @DomainElement @Retention(value=RUNTIME) @Target(value=TYPE) public @interface DomainPolicy
Use this annotation to annotate your Domain Policy Interface.
Example of Domain Policy Interface is the following.
@DomainPolicy
public interface RebatePolicy {
public Money calculateRebate(Product product, int quantity, Money regularCost);
}
Then developers just implements this interface
and can ask injection via the interCopyright © 2013-2016–2016 SeedStack. All rights reserved.