Package fr.enedis.chutney.tools.loader
Class ExtensionLoader.Builder<SOURCE,EXTENSION>
java.lang.Object
fr.enedis.chutney.tools.loader.ExtensionLoader.Builder<SOURCE,EXTENSION>
- Enclosing interface:
ExtensionLoader<EXTENSION>
Builder of
ExtensionLoader.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionwithMapper(Function<SOURCE, Set<EXTENSION>> mappingFunction) static <SOURCE,EXTENSION>
ExtensionLoader.Builder<SOURCE, EXTENSION> withSource(ExtensionLoader.ExtensionLoaderSource<SOURCE> source)
-
Method Details
-
withSource
public static <SOURCE,EXTENSION> ExtensionLoader.Builder<SOURCE,EXTENSION> withSource(ExtensionLoader.ExtensionLoaderSource<SOURCE> source) - Returns:
- an
ExtensionLoader.Builderusing the givenExtensionLoader.ExtensionLoaderSource
-
withMapper
- Returns:
- an
ExtensionLoaderusing the given mappingFunction to transform descriptions loaded byExtensionLoader.ExtensionLoaderSource
-