|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dellroad.stuff.pobj.SpringXSLUpdateTransformConfigurer
public class SpringXSLUpdateTransformConfigurer
Spring BeanPostProcessor that looks for SpringXSLPersistentObjectSchemaUpdate beans that don't have
an explicit transform resource configured, and configures
them using a resource location based on the bean name, by simply adding a configured prefix and suffix.
SpringXSLPersistentObjectSchemaUpdate| Field Summary | |
|---|---|
static String |
DEFAULT_LOCATION_PREFIX
Default location prefix: "/". |
static String |
DEFAULT_LOCATION_SUFFIX
Default location suffix: ".xsl". |
| Constructor Summary | |
|---|---|
SpringXSLUpdateTransformConfigurer()
|
|
| Method Summary | |
|---|---|
protected String |
getImpliedTransformResourceLocation(String beanName)
Derive the implied transform resource location for the update with the given bean name. |
Object |
postProcessAfterInitialization(Object bean,
String beanName)
|
Object |
postProcessBeforeInitialization(Object bean,
String beanName)
|
void |
setPrefix(String prefix)
Set the location prefix. |
void |
setResourceLoader(ResourceLoader resourceLoader)
|
void |
setSuffix(String suffix)
Set the location suffix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_LOCATION_PREFIX
"/".
public static final String DEFAULT_LOCATION_SUFFIX
".xsl".
| Constructor Detail |
|---|
public SpringXSLUpdateTransformConfigurer()
| Method Detail |
|---|
public void setPrefix(String prefix)
public void setSuffix(String suffix)
public void setResourceLoader(ResourceLoader resourceLoader)
setResourceLoader in interface ResourceLoaderAware
public Object postProcessBeforeInitialization(Object bean,
String beanName)
postProcessBeforeInitialization in interface BeanPostProcessor
public Object postProcessAfterInitialization(Object bean,
String beanName)
postProcessAfterInitialization in interface BeanPostProcessorprotected String getImpliedTransformResourceLocation(String beanName)
The implementation in SpringXSLUpdateTransformConfigurer simply prepends the configured
prefix and appends the configured suffix to beanName.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||