Package com.filloax.fxlib.api.platform
Class ServiceUtil
java.lang.Object
com.filloax.fxlib.api.platform.ServiceUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TfindService(Class<T> clazz) static <T> TfindService(Class<T> clazz, @Nullable Supplier<T> defaultImpl)
-
Constructor Details
-
ServiceUtil
public ServiceUtil()
-
-
Method Details
-
findService
- Parameters:
defaultImpl- If nonnull, will be used as a default if no implementations were found. Otherwise if it is null and no implementations were found, this method will throw.
-
findService
-