public abstract class BaseResource
extends java.lang.Object
Constructor and Description |
---|
BaseResource() |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(java.lang.Class<T> service)
Returns reference to the specified service implementation.
|
protected static javax.ws.rs.core.Response.ResponseBuilder |
ok(java.lang.Object obj) |
static void |
setServiceDirectory(ServiceDirectory serviceDirectory)
Sets alternate service directory to be used for lookups.
|
public static void setServiceDirectory(ServiceDirectory serviceDirectory)
Intended to ease unit testing and not intended for use in production.
serviceDirectory
- alternate service directorypublic <T> T get(java.lang.Class<T> service)
T
- type of serviceservice
- service classprotected static javax.ws.rs.core.Response.ResponseBuilder ok(java.lang.Object obj)