|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.puppycrawl.tools.checkstyle.api.AutomaticBean
A Java Bean that implements the component lifecycle interfaces by calling the bean's setters for all configration attributes.
Constructor Summary | |
AutomaticBean()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AutomaticBean()
Method Detail |
public final void configure(Configuration aConfiguration) throws CheckstyleException
finishLocalSetup
is called to allow completion of the bean's local setup,
after that the method setupChild
is called for each child Configuration
of aConfiguration
.
configure
in interface Configurable
aConfiguration
- the configuration to use.
CheckstyleException
- if there is a configuration error.Configurable
public final void contextualize(Context aContext) throws CheckstyleException
contextualize
in interface Contextualizable
aContext
- the context.
CheckstyleException
- if there is a contextualization error.Contextualizable
protected final Configuration getConfiguration()
protected void finishLocalSetup() throws CheckstyleException
The default implementation does nothing.
CheckstyleException
- if there is a configuration error.protected void setupChild(Configuration aChildConf) throws CheckstyleException
The default implementation does nothing.
aChildConf
- a child of this component's Configuration
CheckstyleException
- if there is a configuration error.Configuration.getChildren()
|
Back to the Checkstyle Home Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |