Class LookupImpl

  • All Implemented Interfaces:
    Lookup

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

      • LookupImpl

        public LookupImpl​(ClassFinder classFinder)
        Creates an implementation of Lookup.
        Parameters:
        classFinder - for searching service implementations.
    • Method Detail

      • lookup

        public <T> T lookup​(Class<T> serviceClass)
        Specified by:
        lookup in interface Lookup