Interface JaxRsClassesProvider


  • @ConsumerType
    public interface JaxRsClassesProvider
    Allows to register additional root resource, provider and Feature classes to the JAX-RS runtime.

    These classes do not have to implement JaxRsClassesProvider and should not be OSGI components (as their lifecycle and dependency injection is completely managed by JAX-RS).

    This allows to implement request-scoped resources with constructor initialization. Since OSGI's dependency injection is not possible for these instances, other singleton JaxRsClassesProvider dependencies can be injected with the Context annotation instead.

    • Method Detail

      • getClasses

        Set<Class<?>> getClasses()
        Returns:
        a set of classes to be returned by JAX-RS Application.getClasses().