java.lang.Object | ||||
↳ | org.springframework.context.support.ApplicationObjectSupport | |||
↳ | org.springframework.web.portlet.handler.AbstractHandlerMapping | |||
↳ | org.springframework.web.portlet.handler.AbstractMapBasedHandlerMapping<K> | |||
↳ | org.springframework.web.portlet.handler.PortletModeHandlerMapping |
Implementation of the HandlerMapping
interface to map from the current PortletMode to request handler beans.
The bean configuration for this mapping will look something like this:
<bean id="portletModeHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeHandlerMapping"> <property name="portletModeMap"> <map> <entry key="view"><ref bean="viewHandler"/></entry> <entry key="edit"><ref bean="editHandler"/></entry> <entry key="help"><ref bean="helpHandler"/></entry> </map> </property> </bean>
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.core.Ordered
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.context.support.ApplicationObjectSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Calls the
registerHandlers method in addition
to the superclass's initialization. | |||||||||||
Set PortletMode to handler bean name mappings from a Properties object.
| |||||||||||
Set a Map with PortletModes as keys and handler beans as values.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Uses the current PortletMode as lookup key.
| |||||||||||
Register all handlers specified in the Portlet mode map for the corresponding modes.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.portlet.handler.AbstractMapBasedHandlerMapping
| |||||||||||
From class
org.springframework.web.portlet.handler.AbstractHandlerMapping
| |||||||||||
From class
org.springframework.context.support.ApplicationObjectSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.ApplicationContextAware
| |||||||||||
From interface
org.springframework.core.Ordered
| |||||||||||
From interface
org.springframework.web.portlet.HandlerMapping
|
Calls the registerHandlers
method in addition
to the superclass's initialization.
BeansException |
---|
Set PortletMode to handler bean name mappings from a Properties object.
mappings | properties with PortletMode names as keys and bean names as values |
---|
Set a Map with PortletModes as keys and handler beans as values. Convenient for population with bean references.
portletModeMap | map with PortletMode names as keys and beans or bean names as values |
---|
Uses the current PortletMode as lookup key.
request | current portlet request |
---|
null
)Exception |
---|
Register all handlers specified in the Portlet mode map for the corresponding modes.
portletModeMap | Map with mode names as keys and handler beans or bean names as values |
---|