Class RestResourceRegistry

java.lang.Object
com.peterphi.std.guice.serviceregistry.rest.RestResourceRegistry

public class RestResourceRegistry extends Object
Holds information about the REST resources this webapp exposes
  • Constructor Details

    • RestResourceRegistry

      public RestResourceRegistry()
  • Method Details

    • register

      public static void register(Class<?> clazz)
      Register a new resource - N.B. currently this resource cannot be safely unregistered without restarting the webapp
      Parameters:
      clazz -
    • register

      public static void register(Class<?> clazz, boolean indexable)
      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

      public static List<RestResource> getResources()
    • getRevision

      public static int getRevision()