Class RestResourceRegistry
java.lang.Object
com.peterphi.std.guice.serviceregistry.rest.RestResourceRegistry
Holds information about the REST resources this webapp exposes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<RestResource>
static int
static void
Register a new resource - N.B.static void
Register a new resource - N.B.
-
Constructor Details
-
RestResourceRegistry
public RestResourceRegistry()
-
-
Method Details
-
register
Register a new resource - N.B. currently this resource cannot be safely unregistered without restarting the webapp- Parameters:
clazz
-
-
register
Register a new resource - N.B. currently this resource cannot be safely unregistered without restarting the webapp- Parameters:
clazz
-indexable
- true if this service should also be exposed to any configured index service
-
getResources
-
getRevision
public static int getRevision()
-