I have RequestFactory with some request interface
public interface FooRequest extends RequestContext {
Request<List<Foo>> findSmt();
}
I can’t figure out where I should place findSmt() implementation and how I should do wiring with that implementation.
You can use the @Service annotation to denote a class that implements findSmt. You should not inherit FooRequest.
Unfortunately in same cases I have been forced to put static methods in my domain entities. I think it is not possible to create an
InstanceRequestin a separate class.