title: How to register a static class in Jersey?
body: <p>I have a class of which only static methods are to be accessed via <code>@path</code> annotations and which does not have a public constructor. My simpilified program is:</p>
  
  <pre><code>@Path("")
  static class MyStaticClass
  {
    private MyStaticClass() {...}
   @Get @Path("time")
    static public String time()
    {
       return Instant.now().toString();
    }
  }
  </code></pre>
  
  <p>Running and calling "time" gives me the following error:</p>
  
  <pre><code>WARNUNG: The following warnings have been detected: WARNING: HK2 service reification failed for [...] with an exception:
  MultiException stack 1 of 2
  java.lang.NoSuchMethodException: Could not find a suitable constructor in [...] class.
  </code></pre>