@Documented @DomainElement @Retention(value=RUNTIME) @Target(value={TYPE,ANNOTATION_TYPE}) public @interface DomainService
The implementation of the annotated interface will be bound to this interface in SEED.
Usage :
@DomainService
public interface TransferService {
public void transfer(Account accountSource, Account accountTarget);
}
The implementation should look like :
public class TransferServiceBase implements TransferService {
public void transfer(Account accountSource, Account accountTarget) {
...
}
}
And now the TransferService implementation (TransferServiceBase) will be available via :
@Inject TransferService transferService;Verification will be done by the framework on either or not this service is in the right place.
Copyright © 2013-2015–2015. All rights reserved.