Class ProtoLookup

java.lang.Object
org.apache.maven.cling.invoker.ProtoLookup
All Implemented Interfaces:
org.apache.maven.api.Service, org.apache.maven.api.services.Lookup

public class ProtoLookup extends Object implements org.apache.maven.api.services.Lookup
Proto-Lookup offer ways to provide early components to invoker.
  • 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 name)
      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 name)
      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
    • builder

      public static ProtoLookup.Builder builder()