Package com.io7m.idstore.server.http

# Class IdServletHolders

java.lang.Object
com.io7m.idstore.server.http.IdServletHolders

public final class IdServletHolders extends Object
Servlet holder functions used to inject dependencies into servlets.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IdServletHolders(com.io7m.repetoir.core.RPServiceDirectoryType inServices)`
  Servlet holder functions used to inject dependencies into servlets.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `<T extends jakarta.servlet.Servlet>
  IdServletHolder<T>`
  `create(Class<T> clazz, Function<com.io7m.repetoir.core.RPServiceDirectoryType,T> servlets)`
  Create a new servlet holder.

  ### Methods inherited from class java.lang.Object

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

- ## Constructor Details

  - ### IdServletHolders

    public IdServletHolders(com.io7m.repetoir.core.RPServiceDirectoryType inServices)
    Servlet holder functions used to inject dependencies into servlets.
    Parameters:
      `inServices` - The service directory

- ## Method Details

  - ### create

    public <T extends jakarta.servlet.Servlet> IdServletHolder<T> create(Class<T> clazz, Function<com.io7m.repetoir.core.RPServiceDirectoryType,T> servlets)
    Create a new servlet holder.
    Type Parameters:
      `T` - The type of servlet
    Parameters:
      `clazz` - The servlet class
      `servlets` - A function that instantiates a servlet, given a service directory
    Returns:
      A new servlet holder