Package dev.getelements.elements.sdk.spi
Class FilteredServiceLocator
java.lang.Object
dev.getelements.elements.sdk.spi.FilteredServiceLocator
- All Implemented Interfaces:
ServiceLocator
-
Constructor Summary
ConstructorsConstructorDescriptionFilteredServiceLocator(ServiceLocator delegate, Set<ElementServiceKey<?>> serviceKeySet) -
Method Summary
Modifier and TypeMethodDescriptionfindInstance(ElementServiceKey<T> key) Gets the service using theElementServiceKey.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.sdk.ServiceLocator
findInstance, findInstance, getInstance, getInstance, getInstance
-
Constructor Details
-
FilteredServiceLocator
-
-
Method Details
-
findInstance
Description copied from interface:ServiceLocatorGets the service using theElementServiceKey.- Specified by:
findInstancein interfaceServiceLocator- Type Parameters:
T- the type to request- Parameters:
key- the key- Returns:
- an
OptionalofSupplierto the object
-