com.puppycrawl.tools.checkstyle.api
Class AutomaticBean
- Configurable, Contextualizable
public class AutomaticBean
A Java Bean that implements the component lifecycle interfaces by
calling the bean's setters for all configration attributes.
void | configure(Configuration aConfiguration) - Implements the Configurable interface using bean introspection.
|
void | contextualize(Context aContext) - Implements the Contextualizable interface using bean introspection.
|
protected void | finishLocalSetup() - Provides a hook to finish the part of this compoent's setup that
was not handled by the bean introspection.
|
protected Configuration | getConfiguration() - Returns the configuration that was used to configure this component.
|
protected void | setupChild(Configuration aChildConf) - Called by configure() for every child of this component's Configuration.
|
finishLocalSetup
protected void finishLocalSetup()
throws CheckstyleException
Provides a hook to finish the part of this compoent's setup that
was not handled by the bean introspection.
The default implementation does nothing.
getConfiguration
protected final Configuration getConfiguration()
Returns the configuration that was used to configure this component.
- the configuration that was used to configure this component.
setupChild
protected void setupChild(Configuration aChildConf)
throws CheckstyleException
Called by configure() for every child of this component's Configuration.
The default implementation does nothing.
aChildConf
- a child of this component's Configuration