
de.is24.deadcode4j.analyzer.SpringAnnotationsAnalyzer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadcode4j-maven-plugin Show documentation
Show all versions of deadcode4j-maven-plugin Show documentation
Finds unused classes of a project
package de.is24.deadcode4j.analyzer;
/**
* Analyzes class files: marks a class as being in use if it is annotated with one of those Spring annotations:
*
* - org.springframework.jmx.export.annotation.ManagedResource
* - org.springframework.stereotype.Component
*
*
* Those Spring annotations are marked with @Component
and thus are recursively considered as well:
*
* - org.springframework.context.annotation.Configuration
* - org.springframework.stereotype.Controller
* - org.springframework.stereotype.Service
* - org.springframework.stereotype.Repository
*
*
* @since 1.3
*/
public final class SpringAnnotationsAnalyzer extends AnnotationsAnalyzer {
public SpringAnnotationsAnalyzer() {
super("_Spring-Annotation_",
"org.springframework.jmx.export.annotation.ManagedResource",
"org.springframework.stereotype.Component");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy