- Domino REST
- Configuration
- Resource classes
Locating resource classes
You set up which JAX-RS resource classes to be used for generating REST clients utilizing different mechanism provided by Domino-rest :
- If you have access to the resource interface source code and can modify it, then you can just annotate it with @RequestFactory.
- You cant change the interface source code, but you can extend it, then you extend the resource interface and annotate the new interface with @RequestFactory.
- Use a package-info class and list the resource interfaces using the @ResourceList annotation, example :
@ResourceList({UserResource.class, MoviesResource.IntX.class})
package com.foo.bar;
import org.dominokit.domino.rest.shared.request.service.annotations.ResourceList;