public interface ModuleFactory
AvoidStarImport
to full class names like
com.puppycrawl.tools.checkstyle.checks.AvoidStarImportCheck
.
A ModuleFactory can implement this name resolution by using naming
conventions, fallback strategies, etc.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createModule(java.lang.String name)
Creates a new instance of a class from a given name.
|
java.lang.Object createModule(java.lang.String name) throws CheckstyleException
name
- the name of the module, might be a short nameCheckstyleException
- if no module can be instantiated from name