Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
public static void bind(ServiceBinder binder)
{
	binder.bind(ReloadableEchoResource.class, ReloadableEchoResourceImpl.class);
}

@Contribute(javax.ws.rs.core.Application.class)
public static void configureRestResources(Configuration<Object> singletons, ReloadableEchoResource reloadableEchoResource)
{
	singletons.add(reloadableEchoResource);
}
Note
One more thing: DO NOT put this service in the autodiscovery package.

Enjoy

...