Class LookupStub

java.lang.Object
org.apache.maven.api.plugin.testing.stubs.LookupStub
All Implemented Interfaces:
org.apache.maven.api.Service, org.apache.maven.api.services.Lookup

public class LookupStub extends Object implements org.apache.maven.api.services.Lookup
  • Field Details

    • EMPTY

      public static final org.apache.maven.api.services.Lookup EMPTY
      A stub where all methods return an empty value when possible, or throw an exception otherwise.
  • Constructor Details

    • LookupStub

      protected LookupStub()
      For sub-class constructors.
  • Method Details

    • lookup

      public <T> T lookup(Class<T> type)
      Specified by:
      lookup in interface org.apache.maven.api.services.Lookup
    • lookup

      public <T> T lookup(Class<T> type, String string)
      Specified by:
      lookup in interface org.apache.maven.api.services.Lookup
    • lookupOptional

      public <T> Optional<T> lookupOptional(Class<T> type)
      Specified by:
      lookupOptional in interface org.apache.maven.api.services.Lookup
    • lookupOptional

      public <T> Optional<T> lookupOptional(Class<T> type, String string)
      Specified by:
      lookupOptional in interface org.apache.maven.api.services.Lookup
    • lookupList

      public <T> List<T> lookupList(Class<T> type)
      Specified by:
      lookupList in interface org.apache.maven.api.services.Lookup
    • lookupMap

      public <T> Map<String,T> lookupMap(Class<T> type)
      Specified by:
      lookupMap in interface org.apache.maven.api.services.Lookup