de.is24.deadcode4j.analyzer.SpringXmlAnalyzer 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;
import de.is24.deadcode4j.Analyzer;
/**
* Analyzes Spring XML files:
*
* - lists the
bean
classes being referenced
* - lists the CXF
endpoint
implementor classes
* being referenced
* - lists the classes executed by
* Quartz
* jobs
* - lists the view class used by
*
*
UrlBasedViewResolver
and subclasses
*
*
* @since 1.1.0
*/
public class SpringXmlAnalyzer extends SimpleXmlAnalyzer implements Analyzer {
public SpringXmlAnalyzer() {
super("_Spring-XML_", ".xml", "beans");
registerClassAttribute("bean", "class");
registerClassAttribute("endpoint", "implementor");
registerClassAttribute("endpoint", "implementorClass");
registerClassAttribute("property", "value").withAttributeValue("name", "jobClass");
registerClassAttribute("property", "value").withAttributeValue("name", "viewClass");
}
}