public class DefaultTemplateDefinitionAutoDeployer extends Object implements ApplicationListener<ContextRefreshedEvent>, Ordered, ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationContext |
applicationContext |
static String |
DEFAULT_DEPLOYMENT_NAME |
static int |
DEFAULT_ORDER |
protected String |
deploymentName |
protected Collection<Resource> |
deploymentResources |
protected int |
order |
protected TemplateEngine |
templateEngine |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
DefaultTemplateDefinitionAutoDeployer(Collection<Resource> deploymentResources,
TemplateEngine templateEngine) |
DefaultTemplateDefinitionAutoDeployer(Collection<Resource> deploymentResources,
TemplateEngine templateEngine,
String deploymentName) |
| Modifier and Type | Method and Description |
|---|---|
void |
deployResources() |
int |
getOrder() |
void |
onApplicationEvent(ContextRefreshedEvent event) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setOrder(int order) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforPayloadpublic static final String DEFAULT_DEPLOYMENT_NAME
public static final int DEFAULT_ORDER
protected Collection<Resource> deploymentResources
protected TemplateEngine templateEngine
protected String deploymentName
protected ApplicationContext applicationContext
protected int order
public DefaultTemplateDefinitionAutoDeployer(Collection<Resource> deploymentResources, TemplateEngine templateEngine)
public DefaultTemplateDefinitionAutoDeployer(Collection<Resource> deploymentResources, TemplateEngine templateEngine, String deploymentName)
public void setOrder(int order)
public void onApplicationEvent(ContextRefreshedEvent event)
onApplicationEvent in interface ApplicationListener<ContextRefreshedEvent>public void deployResources()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansException