Class ProjectGenerationCondition

java.lang.Object
io.spring.initializr.generator.condition.ProjectGenerationCondition
All Implemented Interfaces:
org.springframework.context.annotation.Condition
Direct Known Subclasses:
OnGradleVersionCondition

public abstract class ProjectGenerationCondition extends Object implements org.springframework.context.annotation.Condition
Base class for project generation Conditions that rely on the state of the ProjectDescription.
Author:
Andy Wilkinson
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract boolean
    matches(ProjectDescription description, org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
     
    boolean
    matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProjectGenerationCondition

      public ProjectGenerationCondition()
  • Method Details

    • matches

      public boolean matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
      Specified by:
      matches in interface org.springframework.context.annotation.Condition
    • matches

      protected abstract boolean matches(ProjectDescription description, org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)