public VelocityViewResolver() { setViewClass(requiredViewClass()); }
public VelocityViewResolver() { setViewClass(requiredViewClass()); }
public VelocityViewResolver() { setViewClass(requiredViewClass()); }
@Override protected void initApplicationContext() { super.initApplicationContext(); if (this.toolboxConfigLocation != null) { if (VelocityView.class == getViewClass()) { logger.info("Using VelocityToolboxView instead of default VelocityView " + "due to specified toolboxConfigLocation"); setViewClass(VelocityToolboxView.class); } else if (!VelocityToolboxView.class.isAssignableFrom(getViewClass())) { throw new IllegalArgumentException( "Given view class [" + getViewClass().getName() + "] is not of type [" + VelocityToolboxView.class.getName() + "], which it needs to be in case of a specified toolboxConfigLocation"); } } }
@Override protected void initApplicationContext() { super.initApplicationContext(); if (this.toolboxConfigLocation != null) { if (VelocityView.class == getViewClass()) { logger.info("Using VelocityToolboxView instead of default VelocityView " + "due to specified toolboxConfigLocation"); setViewClass(VelocityToolboxView.class); } else if (!VelocityToolboxView.class.isAssignableFrom(getViewClass())) { throw new IllegalArgumentException( "Given view class [" + getViewClass().getName() + "] is not of type [" + VelocityToolboxView.class.getName() + "], which it needs to be in case of a specified toolboxConfigLocation"); } } }
@Override protected void initApplicationContext() { super.initApplicationContext(); if (this.toolboxConfigLocation != null) { if (VelocityView.class == getViewClass()) { logger.info("Using VelocityToolboxView instead of default VelocityView " + "due to specified toolboxConfigLocation"); setViewClass(VelocityToolboxView.class); } else if (!VelocityToolboxView.class.isAssignableFrom(getViewClass())) { throw new IllegalArgumentException( "Given view class [" + getViewClass().getName() + "] is not of type [" + VelocityToolboxView.class.getName() + "], which it needs to be in case of a specified toolboxConfigLocation"); } } }
public ViewResolver viewResolver() { VelocityViewResolver resolver = new VelocityViewResolver(); resolver.setViewClass(VelocityToolboxView.class); resolver.setPrefix(""); resolver.setSuffix(".vm");