public class DefaultTemplateDefinitionAutoDeployer extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
autoDeployTenants |
protected org.springframework.core.io.Resource[] |
customTemplateResources |
static String |
DEFAULT_DEPLOYMENT_NAME |
static int |
DEFAULT_ORDER |
protected org.springframework.core.io.Resource[] |
defaultTemplateResources |
protected String |
deploymentName |
protected int |
order |
protected List<org.springframework.core.io.Resource> |
priorityResources |
protected TemplateEngineConfiguration |
templateEngineConfiguration |
Constructor and Description |
---|
DefaultTemplateDefinitionAutoDeployer(org.springframework.core.io.Resource[] defaultTemplateResources,
org.springframework.core.io.Resource[] customTemplateResources,
List<org.springframework.core.io.Resource> priorityResources,
TemplateEngineConfiguration templateEngineConfiguration,
Set<String> autoDeployTenants) |
DefaultTemplateDefinitionAutoDeployer(org.springframework.core.io.Resource[] defaultTemplateResources,
org.springframework.core.io.Resource[] customTemplateResources,
List<org.springframework.core.io.Resource> priorityResources,
TemplateEngineConfiguration templateEngineConfiguration,
String deploymentName,
Set<String> autoDeployTenants) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToTemplateKeyMap(org.springframework.core.io.Resource resource,
Map<String,org.springframework.core.io.Resource> templateKeyMap,
Map<String,TemplateVariationModel> templateVariationKeyMap,
TemplateEngineConfiguration templateEngineConfiguration) |
protected void |
deploy(String tenantId) |
int |
getOrder() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
setOrder(int order) |
public static final String DEFAULT_DEPLOYMENT_NAME
public static final int DEFAULT_ORDER
protected org.springframework.core.io.Resource[] defaultTemplateResources
protected org.springframework.core.io.Resource[] customTemplateResources
protected List<org.springframework.core.io.Resource> priorityResources
protected TemplateEngineConfiguration templateEngineConfiguration
protected String deploymentName
protected int order
public DefaultTemplateDefinitionAutoDeployer(org.springframework.core.io.Resource[] defaultTemplateResources, org.springframework.core.io.Resource[] customTemplateResources, List<org.springframework.core.io.Resource> priorityResources, TemplateEngineConfiguration templateEngineConfiguration, Set<String> autoDeployTenants)
public DefaultTemplateDefinitionAutoDeployer(org.springframework.core.io.Resource[] defaultTemplateResources, org.springframework.core.io.Resource[] customTemplateResources, List<org.springframework.core.io.Resource> priorityResources, TemplateEngineConfiguration templateEngineConfiguration, String deploymentName, Set<String> autoDeployTenants)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setOrder(int order)
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
protected void deploy(String tenantId)
protected void addToTemplateKeyMap(org.springframework.core.io.Resource resource, Map<String,org.springframework.core.io.Resource> templateKeyMap, Map<String,TemplateVariationModel> templateVariationKeyMap, TemplateEngineConfiguration templateEngineConfiguration) throws Exception
Exception
Copyright © 2019. All rights reserved.