@FunctionalInterface 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 |
---|---|
Object |
createModule(String name)
Creates a new instance of a class from a given name.
|
Object createModule(String name) throws CheckstyleException
name
- the name of the module, might be a short nameCheckstyleException
- if no module can be instantiated from nameCopyright © 2001–2018. All rights reserved.