Class AutomaticBean

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AutomaticBean.OutputStreamOptions
      Enum to specify behaviour regarding ignored modules.
    • Constructor Summary

      Constructors 
      Constructor Description
      AutomaticBean()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(Configuration config)
      Implements the Configurable interface using bean introspection.
      void contextualize​(Context context)
      Implements the Contextualizable interface using bean introspection.
      protected abstract 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AutomaticBean

        public AutomaticBean()
    • Method Detail

      • finishLocalSetup

        protected abstract void finishLocalSetup()
                                          throws CheckstyleException
        Provides a hook to finish the part of this component's setup that was not handled by the bean introspection.

        The default implementation does nothing.

        Throws:
        CheckstyleException - if there is a configuration error.
      • getConfiguration

        protected final Configuration getConfiguration()
        Returns the configuration that was used to configure this component.
        Returns:
        the configuration that was used to configure this component.
      • setupChild

        protected void setupChild​(Configuration childConf)
                           throws CheckstyleException
        Called by configure() for every child of this component's Configuration.

        The default implementation throws CheckstyleException if childConf is null because it doesn't support children. It must be overridden to validate and support children that are wanted.

        Parameters:
        childConf - a child of this component's Configuration
        Throws:
        CheckstyleException - if there is a configuration error.
        See Also:
        Configuration.getChildren()