public class AutomaticBean extends Object implements Configurable, Contextualizable
Constructor and Description |
---|
AutomaticBean() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration)
Implements the Configurable interface using bean introspection.
|
void |
contextualize(Context context)
Implements the Contextualizable interface using bean introspection.
|
protected void |
finishLocalSetup()
Provides a hook to finish the part of this component'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 childConf)
Called by configure() for every child of this component's Configuration.
|
public AutomaticBean()
public final void configure(Configuration configuration) 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 configuration
.configure
in interface Configurable
configuration
- the configuration to use.CheckstyleException
- if there is a configuration error.Configurable
public final void contextualize(Context context) throws CheckstyleException
contextualize
in interface Contextualizable
context
- 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 childConf) throws CheckstyleException
The default implementation does nothing.
childConf
- a child of this component's ConfigurationCheckstyleException
- if there is a configuration error.Configuration.getChildren()
Copyright © 2001–2015. All rights reserved.