public class AutomaticBean extends Object implements Configurable, Contextualizable
コンストラクタと説明 |
---|
AutomaticBean() |
修飾子とタイプ | メソッドと説明 |
---|---|
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 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 aChildConf)
Called by configure() for every child of this component's Configuration.
|
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
インタフェース内 Configurable
aConfiguration
- the configuration to use.CheckstyleException
- if there is a configuration error.Configurable
public final void contextualize(Context aContext) throws CheckstyleException
contextualize
インタフェース内 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 ConfigurationCheckstyleException
- if there is a configuration error.Configuration.getChildren()
Copyright © 2001-2013. All Rights Reserved.