Class RestResourceRegistry
java.lang.Object
com.peterphi.std.guice.serviceregistry.rest.RestResourceRegistry
Holds information about the REST resources this webapp exposes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<RestResource>static intstatic voidRegister a new resource - N.B.static voidRegister 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()
-