Class DefaultFeatureInstaller<P>
java.lang.Object
me.devnatan.inventoryframework.feature.DefaultFeatureInstaller<P>
- Type Parameters:
P- The feature installer platform.
- All Implemented Interfaces:
me.devnatan.inventoryframework.feature.FeatureInstaller<P>
public class DefaultFeatureInstaller<P>
extends Object
implements me.devnatan.inventoryframework.feature.FeatureInstaller<P>
Simple HashMap-backed feature installer implementation.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<me.devnatan.inventoryframework.feature.Feature<?, ?, P>> <C,R> R install(@NotNull me.devnatan.inventoryframework.feature.Feature<C, R, P> feature, @NotNull UnaryOperator<C> configure) void
-
Field Details
-
featureList
-
-
Constructor Details
-
DefaultFeatureInstaller
-
-
Method Details
-
getPlatform
- Specified by:
getPlatformin interfaceme.devnatan.inventoryframework.feature.FeatureInstaller<P>
-
getInstalledFeatures
- Specified by:
getInstalledFeaturesin interfaceme.devnatan.inventoryframework.feature.FeatureInstaller<P>
-
install
@NotNull public <C,R> R install(@NotNull @NotNull me.devnatan.inventoryframework.feature.Feature<C, R, P> feature, @NotNull @NotNull UnaryOperator<C> configure) - Specified by:
installin interfaceme.devnatan.inventoryframework.feature.FeatureInstaller<P>
-
uninstall
public void uninstall(@NotNull @NotNull me.devnatan.inventoryframework.feature.Feature<?, ?, P> feature) - Specified by:
uninstallin interfaceme.devnatan.inventoryframework.feature.FeatureInstaller<P>
-