Package io.micronaut.starter.feature
Class FeatureContext
java.lang.Object
io.micronaut.starter.feature.FeatureContext
-
Constructor Summary
ConstructorDescriptionFeatureContext
(Options options, ApplicationType applicationType, @Nullable OperatingSystem operatingSystem, Set<Feature> selectedFeatures) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFeature
(Feature feature) Adds a feature to be applied.void
addFeatureIfNotPresent
(Class<? extends Feature> featureClass, Feature feature) void
exclude
(FeaturePredicate exclusion) getFeature
(Class<? extends Feature> feature) getFinalFeatures
(ConsoleOutput consoleOutput) boolean
void
-
Constructor Details
-
FeatureContext
public FeatureContext(Options options, ApplicationType applicationType, @Nullable @Nullable OperatingSystem operatingSystem, Set<Feature> selectedFeatures)
-
-
Method Details
-
processSelectedFeatures
public void processSelectedFeatures() -
exclude
-
getFinalFeatures
-
getLanguage
-
getFramework
-
getTestFramework
-
getBuildTool
-
getJavaVersion
-
getOptions
-
getApplicationType
-
getOperatingSystem
-
getSelectedFeatures
-
addFeature
Adds a feature to be applied. The added feature is processed immediately.- Parameters:
feature
- The feature to add
-
isPresent
-
getFeature
-
addFeatureIfNotPresent
-