@Test public void getController_shouldGetAControllerFromTheSpecifiedProvider() throws Exception { Assert.assertNotNull(factory.getController(pageRequest("somemodule", "somepage"))); Assert.assertNull(factory.getController(pageRequest("somemodule", "otherpage"))); Assert.assertNull(factory.getController(pageRequest("othermodule", "somepage"))); }
Object getController(PageRequest request) { return getController(request.getMappedProviderName(), request.getMappedPageName()); }
PageFactory { Object getController(PageRequest request) { return getController(request.getMappedProviderName(), request.getMappedPageName()); } }
PageFactory { Object getController(PageRequest request) { return getController(request.getMappedProviderName(), request.getMappedPageName()); }  }
PageFactory { Object getController(PageRequest request) { return getController(request.getMappedProviderName(), request.getMappedPageName()); }  String handle(PageRequest request); String process(PageContext context); Map<String, PageControllerProvider> getControllerProviders(); void setControllerProviders(Map<String, PageControllerProvider> newControllerProviders); void setAdditionalControllerProviders(Map<String, PageControllerProvider> additional); void addControllerProvider(String key, PageControllerProvider provider); Map<String, PageViewProvider> getViewProviders(); void setViewProviders(Map<String, PageViewProvider> newViewProviders); void setAdditionalViewProviders(Map<String, PageViewProvider> additional); void addViewProvider(String key, PageViewProvider provider); List<PageRequestMapper> getRequestMappers(); void setRequestMappers(List<PageRequestMapper> requestMappers); ConversionService getConversionService(); List<PageModelConfigurator> getModelConfigurators(); void setModelConfigurators(List<PageModelConfigurator> modelConfigurators); void setPossiblePageControllerArgumentProviders(List<PossiblePageControllerArgumentProvider> possiblePageControllerArgumentProviders); void setPageRequestInterceptors(List<PageRequestInterceptor> pageRequestInterceptors); }
PageFactory { Object getController(PageRequest request) { return getController(request.getMappedProviderName(), request.getMappedPageName()); }  String handle(PageRequest request); String process(PageContext context); Map<String, PageControllerProvider> getControllerProviders(); void setControllerProviders(Map<String, PageControllerProvider> newControllerProviders); void setAdditionalControllerProviders(Map<String, PageControllerProvider> additional); void addControllerProvider(String key, PageControllerProvider provider); Map<String, PageViewProvider> getViewProviders(); void setViewProviders(Map<String, PageViewProvider> newViewProviders); void setAdditionalViewProviders(Map<String, PageViewProvider> additional); void addViewProvider(String key, PageViewProvider provider); List<PageRequestMapper> getRequestMappers(); void setRequestMappers(List<PageRequestMapper> requestMappers); ConversionService getConversionService(); List<PageModelConfigurator> getModelConfigurators(); void setModelConfigurators(List<PageModelConfigurator> modelConfigurators); void setPossiblePageControllerArgumentProviders(List<PossiblePageControllerArgumentProvider> possiblePageControllerArgumentProviders); void setPageRequestInterceptors(List<PageRequestInterceptor> pageRequestInterceptors);  }