类 SimplePortletHandlerAdapter

  • 所有已实现的接口:
    Aware, PortletContextAware, HandlerAdapter

    public class SimplePortletHandlerAdapter
    extends Object
    implements HandlerAdapter, PortletContextAware
    Adapter to use the Portlet interface with the generic DispatcherPortlet. Calls the Portlet's render and processAction methods to handle a request.

    This adapter is not activated by default; it needs to be defined as a bean in the DispatcherPortlet context. It will automatically apply to mapped handler beans that implement the Portlet interface then.

    Note that Portlet instances defined as bean will not receive initialization and destruction callbacks, unless a special post-processor such as SimplePortletPostProcessor is defined in the DispatcherPortlet context.

    Alternatively, consider wrapping a Portlet with Spring's PortletWrappingController. This is particularly appropriate for existing Portlet classes, allowing to specify Portlet initialization parameters, etc.

    从以下版本开始:
    2.0
    作者:
    John A. Lewis
    另请参阅:
    Portlet, SimplePortletPostProcessor, PortletWrappingController