Class CustomProvidersFeature

  • All Implemented Interfaces:
    jakarta.ws.rs.core.Feature

    public class CustomProvidersFeature
    extends Object
    implements jakarta.ws.rs.core.Feature
    Feature to provide the single-line registration of custom providers.
    Author:
    Stepan Kopriva
    • Constructor Detail

      • CustomProvidersFeature

        public CustomProvidersFeature​(Collection<Class<?>> providers)
        Constructs Feature which is used to register providers as providers in Configuration.
        Parameters:
        providers - collection of providers which are going to be registered
    • Method Detail

      • configure

        public boolean configure​(jakarta.ws.rs.core.FeatureContext context)
        Specified by:
        configure in interface jakarta.ws.rs.core.Feature