Class ApplicationTypeFunctionFeature
java.lang.Object
io.micronaut.projectgen.micronaut.ApplicationTypeFeature
io.micronaut.projectgen.micronaut.ApplicationTypeFunctionFeature
- All Implemented Interfaces:
io.micronaut.core.naming.Described, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, RequiresRepository, DefaultFeature, Feature
Feature definition for Micronaut applications of type FUNCTION.
Adds required features and ensures correct HTTP client test setup.
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionApplicationTypeFunctionFeature(MicronautCli micronautCli, MicronautTestJunit5 micronautTestJunit5, MicronautTestSpock micronautTestSpock, Logback logback, GitIgnore gitIgnore, HttpClientTest httpClientTest) Constructs the ApplicationTypeFunctionFeature. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the feature name.voidprocessSelectedFeatures(FeatureContext featureContext) Processes and adds the required features for FUNCTION application type.booleanshouldApply(Options options, Set<Feature> selectedFeatures) Determines if this feature should be applied for the selected options.Methods inherited from class ApplicationTypeFeature
apply, getRepositories, isVisibleMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.naming.Described
getDescriptionMethods inherited from interface Feature
getCategory, getDescription, getFrameworkDocumentation, getOrder, getThirdPartyDocumentation, getTitle, isCommunity, isPreview, supports
-
Constructor Details
-
ApplicationTypeFunctionFeature
public ApplicationTypeFunctionFeature(MicronautCli micronautCli, MicronautTestJunit5 micronautTestJunit5, MicronautTestSpock micronautTestSpock, Logback logback, GitIgnore gitIgnore, HttpClientTest httpClientTest) Constructs the ApplicationTypeFunctionFeature.- Parameters:
micronautCli- The Micronaut CLI featuremicronautTestJunit5- The JUnit 5 test featuremicronautTestSpock- The Spock test featurelogback- The Logback logging featuregitIgnore- The .gitignore featurehttpClientTest- The HTTP client test feature
-
-
Method Details
-
shouldApply
-
processSelectedFeatures
Processes and adds the required features for FUNCTION application type.- Specified by:
processSelectedFeaturesin interfaceFeature- Overrides:
processSelectedFeaturesin classApplicationTypeFeature- Parameters:
featureContext- The feature context
-
getName
-