Class LogSpringContextInfo

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, ApplicationContextAware, MessageSource, MessageSourceAware, Action

public class LogSpringContextInfo extends AbstractProfileAction implements ApplicationContextAware
Spring Web Flow utility action for logging on DEBUG details about the current hierarchy of Spring ApplicationContext and the beans contained within each.

You can contextualize the logging of the info either by setting setDescription(String), or more usefully by using an attribute on the specific action expression as below. This allows using just one declaration of the action bean, but parameterized differently depending on where it is placed.

 <evaluate expression="LogSpringContextInfo">
    <attribute name="springInfoDescription" value="My Description" />
  • Field Details


      public static final String ATTRIB_DESC
      Name of Spring web flow attribute holding the description of the tree to log.
      See Also:
    • log

      private org.slf4j.Logger log
    • applicationContext

      private ApplicationContext applicationContext
      The owning Spring ApplicationContext in which this action is defined.
    • description

      private String description
      Contextual description to output at the start of the action.
  • Constructor Details

    • LogSpringContextInfo

      public LogSpringContextInfo()
  • Method Details