Annotation Interface ConditionalOnRequestedDependency
@Retention(RUNTIME)
@Target({TYPE,METHOD})
@Documented
@Conditional(io.spring.initializr.generator.condition.OnRequestedDependencyCondition.class)
public @interface ConditionalOnRequestedDependency
Condition that matches when a
ProjectDescription
defines a particular
dependency. A generated project may ultimately define a different set of dependencies
according to the contributors that have been executed. To contribute to the project
according to the real set, prefer querying the model itself rather than using this
condition.- Author:
- Andy Wilkinson, Stephane Nicoll
-
Required Element Summary
Required Elements
-
Element Details
-
value
String valueThe identifier of the dependency.- Returns:
- the dependency ID
-