Replace Spring's removed @Required annotation with our own

Spring 6 removed @Required and they suggest using constructor injection instead. If we switched our beans to that we'd break existing Heritrix crawl configs. So this change implements our own basic version so we still get errors when a @Required property is null.
This commit is contained in:
Alex Osborne
2024-11-20 16:30:15 +09:00
parent 055f4f9f22
commit dd210c8e70
12 changed files with 76 additions and 11 deletions
@@ -20,8 +20,8 @@
package org.archive.crawler.spring;
import org.archive.modules.deciderules.DecideRule;
import org.archive.spring.Required;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.core.Ordered;
/**
@@ -19,9 +19,9 @@
package org.archive.crawler.spring;
import java.util.List;
import org.archive.spring.Required;
import org.springframework.beans.factory.annotation.Required;
import java.util.List;
/**
* SheetAssociation applied on the basis of matching SURT prefixes.