Module io.jooby
Package io.jooby

Interface MvcFactory


public interface MvcFactory
Created by a Jooby annotation processor tool using the ServiceLoader API.
Since:
2.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    create(jakarta.inject.Provider provider)
    Creates an extension module.
    boolean
    Check if the factory applies for the given MVC route.
  • Method Details

    • supports

      boolean supports(@NonNull Class type)
      Check if the factory applies for the given MVC route.
      Parameters:
      type - MVC route.
      Returns:
      True for matching factory.
    • create

      @NonNull Extension create(@NonNull jakarta.inject.Provider provider)
      Creates an extension module. The extension module are created at compilation time by Jooby APT.
      Parameters:
      provider - MVC route instance provider.
      Returns:
      All mvc route as extension module.