@Deprecated public class TilesConfigurer extends WebApplicationObjectSupport implements InitializingBean
NOTE: This TilesConfigurer class supports Tiles 1.x,
a.k.a. "Struts Tiles", which comes as part of Struts 1.x.
For Tiles 2.x support, check out
TilesConfigurer
.
The TilesConfigurer simply configures a Tiles DefinitionsFactory using
a set of files containing definitions, to be accessed by TilesView
instances.
TilesViews can be managed by any ViewResolver
.
For simple convention-based view resolution, consider using
UrlBasedViewResolver
with the
"viewClass" property set to "org.springframework.web.servlet.view.tiles.TilesView".
A typical TilesConfigurer bean definition looks as follows:
<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles.TilesConfigurer"> <property name="definitions"> <list> <value>/WEB-INF/defs/general.xml</value> <value>/WEB-INF/defs/widgets.xml</value> <value>/WEB-INF/defs/administrator.xml</value> <value>/WEB-INF/defs/customer.xml</value> <value>/WEB-INF/defs/templates.xml</value> </list> </property> </bean>The values in the list are the actual files containing the definitions.
TilesView
,
UrlBasedViewResolver
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
definitions
Deprecated.
Definition URLs mapped to descriptions
|
private java.lang.Class |
factoryClass
Deprecated.
Factory class for Tiles
|
private boolean |
validateDefinitions
Deprecated.
Validate the Tiles definitions?
|
logger
Constructor and Description |
---|
TilesConfigurer()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Deprecated.
Initialize the Tiles definition factory.
|
protected DefinitionsFactory |
createDefinitionsFactory(DefinitionsFactoryConfig factoryConfig)
Deprecated.
Create the Tiles DefinitionsFactory and expose it to the ServletContext.
|
void |
setDefinitions(java.lang.String[] definitions)
Deprecated.
Set the Tiles definitions, i.e.
|
void |
setFactoryClass(java.lang.Class factoryClass)
Deprecated.
Set the factory class for Tiles.
|
void |
setValidateDefinitions(boolean validateDefinitions)
Deprecated.
Set whether to validate the Tiles XML definitions.
|
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
private java.lang.String[] definitions
private boolean validateDefinitions
private java.lang.Class factoryClass
public void setDefinitions(java.lang.String[] definitions)
public void setValidateDefinitions(boolean validateDefinitions)
public void setFactoryClass(java.lang.Class factoryClass)
org.apache.struts.tiles.xmlDefinition.I18nFactorySet
public void afterPropertiesSet() throws DefinitionsFactoryException
afterPropertiesSet
in interface InitializingBean
DefinitionsFactoryException
- if an error occurscreateDefinitionsFactory(DefinitionsFactoryConfig)
protected DefinitionsFactory createDefinitionsFactory(DefinitionsFactoryConfig factoryConfig) throws DefinitionsFactoryException
factoryConfig
- the configuration for the DefinitionsFactoryDefinitionsFactoryException
- if an error occurs