Register annotated JAX-RS resource, JAX-RS or Jersey contract provider or JAX-RS feature in the {@code ResourceConfig}.
Note that registered JAX-RS features are used to initialize and configure the Jersey runtime {@link ServiceLocator} instance during application deployment, but areotherwise ignored by server-side runtime, unless they implement also another contract recognized by Jersey runtime.
Also note that registration of {@link Binder HK2 binder} classes is note supported. HK2 bindersmust be {@link #registerInstances(Object) registered as instances}.
@param classes classes to register.
@return updated resource configuration instance.