Class ModuleInfo.ProvidesDirective

java.lang.Object
io.inverno.tool.buildtools.ModuleInfo.ProvidesDirective
Enclosing class:
ModuleInfo

public static class ModuleInfo.ProvidesDirective extends Object

Represents a provides directive in a module descriptor.

Since:
1.4
Author:
Jeremy Kuhn
  • Field Details

    • typeName

      protected String typeName
      The type of the service provided by the module.
    • with

      protected List<String> with
      The implementation types in the module providing the service.
  • Constructor Details

    • ProvidesDirective

      public ProvidesDirective()

      Creates a blank provides directive.

    • ProvidesDirective

      public ProvidesDirective(String typeName, List<String> with)

      Creates a provides directive.

      Parameters:
      typeName - the type of the service provided by the module
      with - the types in the module providing the service
  • Method Details

    • getType

      public String getType()

      Returns the service type provided by the module.

      Returns:
      the service type
    • getWith

      public List<String> getWith()

      Returns the types in the module providing the service.

      Returns:
      the types providing the service
    • toString

      public String toString()
      Overrides:
      toString in class Object