List of usage examples for org.springframework.web.servlet.view.tiles3 SpringWildcardServletTilesApplicationContext SpringWildcardServletTilesApplicationContext
public SpringWildcardServletTilesApplicationContext(ServletContext servletContext)
From source file:cn.chenlichao.web.ssm.support.tiles.Tiles3Configurer.java
@Override public void afterPropertiesSet() throws TilesException { ApplicationContext preliminaryContext = new SpringWildcardServletTilesApplicationContext( this.servletContext); this.tilesInitializer = new SSMTilesInitializr(); this.tilesInitializer.initialize(preliminaryContext); }
From source file:org.springframework.web.servlet.view.tiles3.TilesConfigurer.java
/** * Creates and exposes a TilesContainer for this web application, * delegating to the TilesInitializer.//from w w w. ja v a 2s. c o m * @throws TilesException in case of setup failure */ @Override public void afterPropertiesSet() throws TilesException { Assert.state(this.servletContext != null, "No ServletContext available"); ApplicationContext preliminaryContext = new SpringWildcardServletTilesApplicationContext( this.servletContext); if (this.tilesInitializer == null) { this.tilesInitializer = new SpringTilesInitializer(); } this.tilesInitializer.initialize(preliminaryContext); }