org.apache.tiles.preparer.factory.PreparerFactory Java Examples

The following examples show how to use org.apache.tiles.preparer.factory.PreparerFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TilesConfigurer.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Override
protected PreparerFactory createPreparerFactory(ApplicationContext context) {
	if (preparerFactoryClass != null) {
		return BeanUtils.instantiateClass(preparerFactoryClass);
	}
	else {
		return super.createPreparerFactory(context);
	}
}
 
Example #2
Source File: TilesConfigurer.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Override
protected PreparerFactory createPreparerFactory(ApplicationContext context) {
	if (preparerFactoryClass != null) {
		return BeanUtils.instantiateClass(preparerFactoryClass);
	}
	else {
		return super.createPreparerFactory(context);
	}
}
 
Example #3
Source File: TilesConfigurer.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected PreparerFactory createPreparerFactory(ApplicationContext context) {
	if (preparerFactoryClass != null) {
		return BeanUtils.instantiate(preparerFactoryClass);
	}
	else {
		return super.createPreparerFactory(context);
	}
}
 
Example #4
Source File: TilesConfigurer.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Override
protected PreparerFactory createPreparerFactory(ApplicationContext context) {
	if (preparerFactoryClass != null) {
		return BeanUtils.instantiate(preparerFactoryClass);
	}
	else {
		return super.createPreparerFactory(context);
	}
}
 
Example #5
Source File: TilesConfigurer.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Set the {@link org.apache.tiles.preparer.factory.PreparerFactory} implementation to use.
 * Default is {@link org.apache.tiles.preparer.factory.BasicPreparerFactory}, creating
 * shared instances for specified preparer classes.
 * <p>Specify {@link SimpleSpringPreparerFactory} to autowire
 * {@link org.apache.tiles.preparer.ViewPreparer} instances based on specified
 * preparer classes, applying Spring's container callbacks as well as applying
 * configured Spring BeanPostProcessors. If Spring's context-wide annotation-config
 * has been activated, annotations in ViewPreparer classes will be automatically
 * detected and applied.
 * <p>Specify {@link SpringBeanPreparerFactory} to operate on specified preparer
 * <i>names</i> instead of classes, obtaining the corresponding Spring bean from
 * the DispatcherServlet's application context. The full bean creation process
 * will be in the control of the Spring application context in this case,
 * allowing for the use of scoped beans etc. Note that you need to define one
 * Spring bean definition per preparer name (as used in your Tiles definitions).
 * @see SimpleSpringPreparerFactory
 * @see SpringBeanPreparerFactory
 */
public void setPreparerFactoryClass(Class<? extends PreparerFactory> preparerFactoryClass) {
	this.preparerFactoryClass = preparerFactoryClass;
}
 
Example #6
Source File: TilesConfigurer.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Set the {@link org.apache.tiles.preparer.factory.PreparerFactory} implementation to use.
 * Default is {@link org.apache.tiles.preparer.factory.BasicPreparerFactory}, creating
 * shared instances for specified preparer classes.
 * <p>Specify {@link SimpleSpringPreparerFactory} to autowire
 * {@link org.apache.tiles.preparer.ViewPreparer} instances based on specified
 * preparer classes, applying Spring's container callbacks as well as applying
 * configured Spring BeanPostProcessors. If Spring's context-wide annotation-config
 * has been activated, annotations in ViewPreparer classes will be automatically
 * detected and applied.
 * <p>Specify {@link SpringBeanPreparerFactory} to operate on specified preparer
 * <i>names</i> instead of classes, obtaining the corresponding Spring bean from
 * the DispatcherServlet's application context. The full bean creation process
 * will be in the control of the Spring application context in this case,
 * allowing for the use of scoped beans etc. Note that you need to define one
 * Spring bean definition per preparer name (as used in your Tiles definitions).
 * @see SimpleSpringPreparerFactory
 * @see SpringBeanPreparerFactory
 */
public void setPreparerFactoryClass(Class<? extends PreparerFactory> preparerFactoryClass) {
	this.preparerFactoryClass = preparerFactoryClass;
}
 
Example #7
Source File: TilesConfigurer.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Set the {@link org.apache.tiles.preparer.factory.PreparerFactory} implementation to use.
 * Default is {@link org.apache.tiles.preparer.factory.BasicPreparerFactory}, creating
 * shared instances for specified preparer classes.
 * <p>Specify {@link SimpleSpringPreparerFactory} to autowire
 * {@link org.apache.tiles.preparer.ViewPreparer} instances based on specified
 * preparer classes, applying Spring's container callbacks as well as applying
 * configured Spring BeanPostProcessors. If Spring's context-wide annotation-config
 * has been activated, annotations in ViewPreparer classes will be automatically
 * detected and applied.
 * <p>Specify {@link SpringBeanPreparerFactory} to operate on specified preparer
 * <i>names</i> instead of classes, obtaining the corresponding Spring bean from
 * the DispatcherServlet's application context. The full bean creation process
 * will be in the control of the Spring application context in this case,
 * allowing for the use of scoped beans etc. Note that you need to define one
 * Spring bean definition per preparer name (as used in your Tiles definitions).
 * @see SimpleSpringPreparerFactory
 * @see SpringBeanPreparerFactory
 */
public void setPreparerFactoryClass(Class<? extends PreparerFactory> preparerFactoryClass) {
	this.preparerFactoryClass = preparerFactoryClass;
}
 
Example #8
Source File: TilesConfigurer.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Set the {@link org.apache.tiles.preparer.factory.PreparerFactory} implementation to use.
 * Default is {@link org.apache.tiles.preparer.factory.BasicPreparerFactory}, creating
 * shared instances for specified preparer classes.
 * <p>Specify {@link SimpleSpringPreparerFactory} to autowire
 * {@link org.apache.tiles.preparer.ViewPreparer} instances based on specified
 * preparer classes, applying Spring's container callbacks as well as applying
 * configured Spring BeanPostProcessors. If Spring's context-wide annotation-config
 * has been activated, annotations in ViewPreparer classes will be automatically
 * detected and applied.
 * <p>Specify {@link SpringBeanPreparerFactory} to operate on specified preparer
 * <i>names</i> instead of classes, obtaining the corresponding Spring bean from
 * the DispatcherServlet's application context. The full bean creation process
 * will be in the control of the Spring application context in this case,
 * allowing for the use of scoped beans etc. Note that you need to define one
 * Spring bean definition per preparer name (as used in your Tiles definitions).
 * @see SimpleSpringPreparerFactory
 * @see SpringBeanPreparerFactory
 */
public void setPreparerFactoryClass(Class<? extends PreparerFactory> preparerFactoryClass) {
	this.preparerFactoryClass = preparerFactoryClass;
}