Package ovh.mythmc.gestalt.features
Class GestaltFeature.GestaltFeatureBuilder
java.lang.Object
ovh.mythmc.gestalt.features.GestaltFeature.GestaltFeatureBuilder
- Enclosing class:
GestaltFeature
Builder for
GestaltFeature.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns aGestaltFeaturewith the configured values.constructorParams(FeatureConstructorParams constructorParams) Sets the optional constructor parameters for the feature class.featureClass(@NotNull Class<?> featureClass) Sets the feature class for this descriptor.
-
Method Details
-
featureClass
Sets the feature class for this descriptor.- Parameters:
featureClass- theFeature-annotated class- Returns:
- this builder
-
constructorParams
public GestaltFeature.GestaltFeatureBuilder constructorParams(FeatureConstructorParams constructorParams) Sets the optional constructor parameters for the feature class.- Parameters:
constructorParams- the constructor parameters, ornullto use the no-arg constructor- Returns:
- this builder
-
build
Builds and returns aGestaltFeaturewith the configured values.- Returns:
- a new
GestaltFeatureinstance
-