Class WebServerService__ServiceDescriptor<T extends io.helidon.webserver.WebServerService>

java.lang.Object
io.helidon.webserver.WebServerService__ServiceDescriptor<T>
Type Parameters:
T - type of the service, for extensibility
All Implemented Interfaces:
Weighted, ServiceDescriptor<T>, ServiceInfo, Comparable<Weighted>

public class WebServerService__ServiceDescriptor<T extends io.helidon.webserver.WebServerService> extends Object implements ServiceDescriptor<T>
Service descriptor for WebServerService.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Dependency
    Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter config.
    static final Dependency
    Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter serverFeatures.
    static final Dependency
    Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter httpFeatures.
    static final Dependency
    Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter protocolConfigs.
    static final Dependency
    Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter contentEncodings.
    static final Dependency
    Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter mediaSupports.
    static final Dependency
    Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter connectionSelectors.
    static final Dependency
    Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter httpErrorHandlers.
    static final Dependency
    Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter directHandlers.
    static final Dependency
    Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter requestedUriDiscoveryContext.
    static final WebServerService__ServiceDescriptor<io.helidon.webserver.WebServerService>
    Global singleton instance for this descriptor.

    Fields inherited from interface Weighted

    DEFAULT_WEIGHT
    Modifier and Type
    Field
    Description
    static final double
    Default weight for any weighted component (whether it implements this interface or uses Weight annotation).
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor with no side effects
  • Method Summary

    Modifier and Type
    Method
    Description
    List of dependencies required by this service.
    Type of the service descriptor (usually generated).
    io.helidon.webserver.WebServerService
    instantiate(DependencyContext ctx__helidonInject, InterceptionMetadata interceptMeta__helidonInject)
    Create a new service instance.
    Scope of this service.
    Type of the service this descriptor describes.
    Provide a mapping of a contracts of this service to its contract type set.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface ServiceDescriptor

    inject, postConstruct, preDestroy
    Modifier and Type
    Method
    Description
    default void
    inject(DependencyContext ctx, InterceptionMetadata interceptionMetadata, Set<String> injected, T instance)
    Inject fields and methods.
    default void
    postConstruct(T instance)
    Invoke Service.PostConstruct annotated method(s).
    default void
    preDestroy(T instance)
    Invoke Service.PreDestroy annotated method(s).

    Methods inherited from interface ServiceInfo

    contracts, factoryContracts, factoryType, isAbstract, providedType, qualifiers, runLevel
    Modifier and Type
    Method
    Description
    default Set<ResolvedType>
    Set of contracts the described service implements or provides through a factory method.
    default Set<ResolvedType>
    Set of contracts that identify the factory provider itself.
    default FactoryType
    What factory type is the described service.
    default boolean
    Returns true for abstract classes and interfaces, returns false by default.
    default TypeName
    The type that implements ServiceInfo.contracts().
    default Set<Qualifier>
    Service qualifiers.
    default Optional<Double>
    Run level of this service.

    Methods inherited from interface Weighted

    compareTo, weight
    Modifier and Type
    Method
    Description
    default int
     
    default double
    Weight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation).
  • Field Details

    • INSTANCE

      public static final WebServerService__ServiceDescriptor<io.helidon.webserver.WebServerService> INSTANCE
      Global singleton instance for this descriptor.
    • DEP_0

      public static final Dependency DEP_0
      Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter config.
    • DEP_1

      public static final Dependency DEP_1
      Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter serverFeatures.
    • DEP_2

      public static final Dependency DEP_2
      Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter httpFeatures.
    • DEP_3

      public static final Dependency DEP_3
      Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter protocolConfigs.
    • DEP_4

      public static final Dependency DEP_4
      Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter contentEncodings.
    • DEP_5

      public static final Dependency DEP_5
      Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter mediaSupports.
    • DEP_6

      public static final Dependency DEP_6
      Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter connectionSelectors.
    • DEP_7

      public static final Dependency DEP_7
      Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter httpErrorHandlers.
    • DEP_8

      public static final Dependency DEP_8
      Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter directHandlers.
    • DEP_9

      public static final Dependency DEP_9
      Injection point dependency for WebServerService(Optional config, Supplier serverFeatures, List httpFeatures, List protocolConfigs, List contentEncodings, List mediaSupports, List connectionSelectors, List httpErrorHandlers, Optional directHandlers, Optional requestedUriDiscoveryContext), parameter requestedUriDiscoveryContext.
  • Constructor Details

    • WebServerService__ServiceDescriptor

      protected WebServerService__ServiceDescriptor()
      Constructor with no side effects
  • Method Details

    • serviceType

      public TypeName serviceType()
      Description copied from interface: ServiceInfo
      Type of the service this descriptor describes.
      Specified by:
      serviceType in interface ServiceInfo
      Returns:
      service type
    • descriptorType

      public TypeName descriptorType()
      Description copied from interface: ServiceInfo
      Type of the service descriptor (usually generated).
      Specified by:
      descriptorType in interface ServiceInfo
      Returns:
      descriptor type
    • scope

      public TypeName scope()
      Description copied from interface: ServiceDescriptor
      Scope of this service.
      Specified by:
      scope in interface ServiceDescriptor<T extends io.helidon.webserver.WebServerService>
      Specified by:
      scope in interface ServiceInfo
      Returns:
      scope of the service
    • typeSet

      public Set<ResolvedType> typeSet(ResolvedType contract)
      Description copied from interface: ServiceDescriptor
      Provide a mapping of a contracts of this service to its contract type set. If the result is empty, it will be ignored.
      Specified by:
      typeSet in interface ServiceDescriptor<T extends io.helidon.webserver.WebServerService>
      Parameters:
      contract - contract to get types for
      Returns:
      type map for each type that is a contract of this service
    • dependencies

      public List<Dependency> dependencies()
      Description copied from interface: ServiceInfo
      List of dependencies required by this service. These may be injection points as constructor parameters, fields, or setter methods.
      Specified by:
      dependencies in interface ServiceInfo
      Returns:
      required dependencies
    • instantiate

      public io.helidon.webserver.WebServerService instantiate(DependencyContext ctx__helidonInject, InterceptionMetadata interceptMeta__helidonInject)
      Description copied from interface: ServiceDescriptor
      Create a new service instance.
      Specified by:
      instantiate in interface ServiceDescriptor<T extends io.helidon.webserver.WebServerService>
      Parameters:
      ctx__helidonInject - dependency context with all dependencies of this service
      interceptMeta__helidonInject - metadata handler for interception
      Returns:
      a new instance, must be of the type T or a subclass