Interface ActionFactoryBean<T>

Type Parameters:
T - the type of the action controller instance
All Known Implementing Classes:
ActionFactoryBeanForSpring

public interface ActionFactoryBean<T>
Factory interface for creating or retrieving action controller instances. Implementations may delegate to DI containers like Spring.
Author:
渔民小镇
date:
2021-12-20
  • Method Summary

    Modifier and Type
    Method
    Description
    getBean(ActionCommand actionCommand)
    Get or create the action controller instance for the given action command.
    default T
    getBean(Class<?> actionControllerClazz)
    Get or create an action controller instance by class.
  • Method Details

    • getBean

      T getBean(ActionCommand actionCommand)
      Get or create the action controller instance for the given action command.
      Parameters:
      actionCommand - the action command describing the target controller
      Returns:
      the action controller instance
    • getBean

      default T getBean(Class<?> actionControllerClazz)
      Get or create an action controller instance by class. Returns null by default.
      Parameters:
      actionControllerClazz - the action controller class
      Returns:
      the action controller instance, or null if not supported