Package com.activeviam.builders
Class ResultConsumerPluginDescriptionBuilder<RT>
java.lang.Object
com.activeviam.builders.ResultConsumerPluginDescriptionBuilder<RT>
- Type Parameters:
RT- The type of the parent builder to return to.
- All Implemented Interfaces:
IPluginDescriptionBuilder<RT>
public class ResultConsumerPluginDescriptionBuilder<RT>
extends Object
implements IPluginDescriptionBuilder<RT>
Simple implementation of
IPluginDescriptionBuilder keeping a reference to the function
integrating this builder's result to provide the next builder.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.activeviam.desc.build.IPluginDescriptionBuilder
IPluginDescriptionBuilder.PluginDescriptionBuilderWithKey<RT>, IPluginDescriptionBuilder.PluginDescriptionBuilderWithProperty<RT> -
Constructor Summary
ConstructorsConstructorDescriptionResultConsumerPluginDescriptionBuilder(Function<PluginDefinition, RT> resultConsumer) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGives the key to use for this plugin.
-
Constructor Details
-
ResultConsumerPluginDescriptionBuilder
Constructor.- Parameters:
resultConsumer- The callback to call when finished creating this plugin description.
-
-
Method Details
-
withKey
Description copied from interface:IPluginDescriptionBuilderGives the key to use for this plugin.- Specified by:
withKeyin interfaceIPluginDescriptionBuilder<RT>- Parameters:
key- The key to use for this plugin.- Returns:
- The builder for chained calls.
-