Class ControllerComponent


public class ControllerComponent extends DispatchComponent
Creates a controller profile to assist in re-calling controllers by path and methods.
Author:
Matthew Tropiano
  • Field Details

    • NO_FILTERS

      protected static final Class<?>[] NO_FILTERS
  • Constructor Details

    • ControllerComponent

      public ControllerComponent(Object instance)
      Creates the controller profile for a Controller class.
      Parameters:
      instance - the input class to profile.
      Throws:
      SmallFrameworkException - if this profile cannot be created due to an initialization problem.
  • Method Details

    • getPath

      public String getPath()
      Returns:
      the base path for this controller.
    • getFilterChain

      public Class<?>[] getFilterChain()
      Returns:
      the list of filter classes to call.
    • getEntryMethods

      public List<ControllerEntryPoint> getEntryMethods()
      Returns:
      the entry points on this controller.
    • scanMethod

      protected void scanMethod(Method method)
      Description copied from class: SmallComponent
      Called to handle a single method scan for this component type. If this method is overridden, it would be wise to call super.scanMethod(m).
      Overrides:
      scanMethod in class DispatchComponent
      Parameters:
      method - the method to inspect.