Package org.wildfly.mcp.api
Annotation Interface Resource
Annotates a business method of a CDI bean as an exposed resource.
The result of a "resource read" operation is always represented as a ResourceResponse. However, the annotated method
can also return other types that are converted according to the following rules.
- If the method returns an implementation of
ResourceContentsthen the reponse contains the single contents object. - If the method returns a
ListofResourceContentsimplementations then the reponse contains the list of contents objects. - The method may return a
Unithat wraps any of the type mentioned above.