Interface ModuleInfoCreatorRequest


public interface ModuleInfoCreatorRequest
Used to represent the parameters that feed into the code generation of a module-info file specifically for Pico in that it offers easy ability to add the Module as well as optionally the Application.
  • Method Details

    • name

      Optional<String> name()
      Optionally, the module name. If not provided then an attempt will be made to calculate the suggested name.
      Returns:
      module name
    • moduleTypeName

      TypeName moduleTypeName()
      The Pico Module type name.
      Returns:
      Pico module type name
    • applicationTypeName

      Optional<TypeName> applicationTypeName()
      The Pico Application type name.
      Returns:
      application type name
    • moduleCreated

      boolean moduleCreated()
      Set to true if the Module should be created.
      Returns:
      true if the Pico Module should be created
    • applicationCreated

      boolean applicationCreated()
      Set to true if the Application should be created.
      Returns:
      true if the Pico Application should be created
    • modulesRequired

      List<String> modulesRequired()
      The modules required list.
      Returns:
      modules required
    • contracts

      Map<TypeName,Set<TypeName>> contracts()
      The service type mapping to contracts for that service type.
      Returns:
      service type mapping to contracts
    • externalContracts

      Map<TypeName,Set<TypeName>> externalContracts()
      The service type mapping to external contracts for that service type.
      Returns:
      service type mapping to external contracts
    • moduleInfoPath

      Optional<String> moduleInfoPath()
      Optionally, the path for where to access the module-info file.
      Returns:
      module info path
    • classPrefixName

      String classPrefixName()
      The class name prefix for the code generated class.
      Returns:
      class name prefix