| org.springframework.web.portlet.handler.AbstractHandlerMapping org.springframework.web.portlet.handler.AbstractMapBasedHandlerMapping
All known Subclasses: org.springframework.web.portlet.handler.ParameterHandlerMapping, org.springframework.web.portlet.handler.PortletModeHandlerMapping, org.springframework.web.portlet.handler.PortletModeParameterHandlerMapping,
Method Summary | |
protected Object | getHandlerInternal(PortletRequest request) Determines a handler for the computed lookup key for the given request. | abstract protected Object | getLookupKey(PortletRequest request) Build a lookup key for the given request. | protected void | registerHandler(Object lookupKey, Object handler) Register the given handler instance for the given parameter value. | protected void | registerHandlers(Map handlerMap) Register all handlers specified in the Portlet mode map for the corresponding modes. | public void | setLazyInitHandlers(boolean lazyInitHandlers) Set whether to lazily initialize handlers. |
getLookupKey | abstract protected Object getLookupKey(PortletRequest request) throws Exception(Code) | | Build a lookup key for the given request.
Parameters: request - current portlet request the lookup key (never null ) throws: Exception - if key computation failed |
registerHandler | protected void registerHandler(Object lookupKey, Object handler) throws BeansException, IllegalStateException(Code) | | Register the given handler instance for the given parameter value.
Parameters: lookupKey - the key to map the handler onto Parameters: handler - the handler instance or handler bean name String(a bean name will automatically be resolved into the corrresponding handler bean) throws: BeansException - if the handler couldn't be registered throws: IllegalStateException - if there is a conflicting handler registered |
registerHandlers | protected void registerHandlers(Map handlerMap) throws BeansException(Code) | | Register all handlers specified in the Portlet mode map for the corresponding modes.
Parameters: handlerMap - Map with lookup keys as keys and handler beans or bean names as values throws: BeansException - if the handler couldn't be registered |
setLazyInitHandlers | public void setLazyInitHandlers(boolean lazyInitHandlers)(Code) | | Set whether to lazily initialize handlers. Only applicable to
singleton handlers, as prototypes are always lazily initialized.
Default is false, as eager initialization allows for more efficiency
through referencing the handler objects directly.
If you want to allow your handlers to be lazily initialized,
make them "lazy-init" and set this flag to true. Just making them
"lazy-init" will not work, as they are initialized through the
references from the handler mapping in this case.
|
|
|