org.springframework.web.servlet.HandlerMapping
interface, detecting URL mappings for handler beans through introspection of all
defined beans in the application context.
determineUrlsForHandler
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected abstract String[] | Returns: the URLs determined for the bean, or an empty array if nonethe name of the candidate bean beanName)Determine the URLs for the given handler bean. |
| public void | initApplicationContext()
Overrides org. Calls the |
| public void | setDetectHandlersInAncestorContexts(boolean detectHandlersInAncestorContexts)
Set whether to detect handler beans in ancestor ApplicationContexts. |
| detectHandlersInAncestorContexts | back to summary |
|---|---|
| private boolean detectHandlersInAncestorContexts | |
| AbstractDetectingUrlHandlerMapping | back to summary |
|---|---|
| public AbstractDetectingUrlHandlerMapping() | |
| detectHandlers | back to summary |
|---|---|
| protected void detectHandlers() throws BeansException Register all handlers found in the current ApplicationContext. The actual URL determination for a handler is up to the concrete
| |
| determineUrlsForHandler | back to summary |
|---|---|
| protected abstract String[] determineUrlsForHandler(String beanName) Determine the URLs for the given handler bean. | |
| initApplicationContext | back to summary |
|---|---|
| public void initApplicationContext() throws ApplicationContextException Overrides org. Calls the
| |
| setDetectHandlersInAncestorContexts | back to summary |
|---|---|
| public void setDetectHandlersInAncestorContexts(boolean detectHandlersInAncestorContexts) Set whether to detect handler beans in ancestor ApplicationContexts. Default is "false": Only handler beans in the current ApplicationContext will be detected, i.e. only in the context that this HandlerMapping itself is defined in (typically the current DispatcherServlet's context). Switch this flag on to detect handler beans in ancestor contexts (typically the Spring root WebApplicationContext) as well. | |