Class LookupImpl

java.lang.Object
com.vaadin.flow.utils.LookupImpl
All Implemented Interfaces:
com.vaadin.flow.di.Lookup

public class LookupImpl extends Object implements com.vaadin.flow.di.Lookup
An implementation of Lookup, which could be used to find service(s) of a given type.
  • Constructor Details

    • LookupImpl

      public LookupImpl(com.vaadin.flow.server.frontend.scanner.ClassFinder classFinder)
      Creates an implementation of Lookup.
      Parameters:
      classFinder - for searching service implementations.
  • Method Details

    • lookup

      public <T> T lookup(Class<T> serviceClass)
      Specified by:
      lookup in interface com.vaadin.flow.di.Lookup
    • lookupAll

      public <T> List<T> lookupAll(Class<T> serviceClass)
      Specified by:
      lookupAll in interface com.vaadin.flow.di.Lookup