public class MultiTenantCopyConfigValidator extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
entityManager |
protected javax.persistence.EntityManagerFactory |
entityManagerFactory |
protected boolean |
failOnProblem |
static String |
IGNORE_KEY |
protected List<org.broadleafcommerce.common.util.IgnorableItem> |
ignoreTypes |
protected boolean |
validationEnabled |
| Constructor and Description |
|---|
MultiTenantCopyConfigValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkIgnore(Class<?> cls) |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
protected void |
validateClass(Class<?> cls) |
protected void |
validateField(Field field,
Class<?> cls) |
public static final String IGNORE_KEY
protected javax.persistence.EntityManagerFactory entityManagerFactory
protected List<org.broadleafcommerce.common.util.IgnorableItem> ignoreTypes
@Value(value="${multitenant.copy.config.validation.enabled:true}")
protected boolean validationEnabled
@Value(value="${multitenant.copy.config.validation.fail.on.problem:false}")
protected boolean failOnProblem
protected javax.persistence.EntityManager entityManager
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>protected void validateClass(Class<?> cls)
protected void validateField(Field field, Class<?> cls) throws IllegalArgumentException
IllegalArgumentExceptionprotected boolean checkIgnore(Class<?> cls)
Copyright © 2020. All rights reserved.