/** * Constructor that detects the configured {@code HandlerMapping}s in the * given {@code ApplicationContext} or falls back on * "DispatcherServlet.properties" like the {@code DispatcherServlet}. * @deprecated as of 4.3.12, in favor of {@link #setApplicationContext} */ @Deprecated public HandlerMappingIntrospector(ApplicationContext context) { this.handlerMappings = initHandlerMappings(context); }
@Override public void afterPropertiesSet() { if (this.handlerMappings == null) { Assert.notNull(this.applicationContext, "No ApplicationContext"); this.handlerMappings = initHandlerMappings(this.applicationContext); } }
/** * Constructor that detects the configured {@code HandlerMapping}s in the * given {@code ApplicationContext} or falls back on * "DispatcherServlet.properties" like the {@code DispatcherServlet}. * @deprecated as of 4.3.12, in favor of {@link #setApplicationContext} */ @Deprecated public HandlerMappingIntrospector(ApplicationContext context) { this.handlerMappings = initHandlerMappings(context); }
@Override public void afterPropertiesSet() { if (this.handlerMappings == null) { Assert.notNull(this.applicationContext, "No ApplicationContext"); this.handlerMappings = initHandlerMappings(this.applicationContext); } }
/** * Constructor that detects the configured {@code HandlerMapping}s in the * given {@code ApplicationContext} or falls back on * "DispatcherServlet.properties" like the {@code DispatcherServlet}. * @deprecated as of 4.3.12, in favor of {@link #setApplicationContext} */ @Deprecated public HandlerMappingIntrospector(ApplicationContext context) { this.handlerMappings = initHandlerMappings(context); }
@Override public void afterPropertiesSet() { if (this.handlerMappings == null) { Assert.notNull(this.applicationContext, "No ApplicationContext"); this.handlerMappings = initHandlerMappings(this.applicationContext); } }