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, wait
Methods inherited from interface dev.getelements.elements.sdk.ServiceLocator
findInstance, findInstance, getInstance, getInstance, getInstance
-
Constructor Details
-
FilteredServiceLocator
-
-
Method Details
-
findInstance
Description copied from interface:ServiceLocator
Gets the service using theElementServiceKey
.- Specified by:
findInstance
in interfaceServiceLocator
- Type Parameters:
T
- the type to request- Parameters:
key
- the key- Returns:
- an
Optional
ofSupplier
to the object
-