Class ConditionalFieldAnnotationCopyTransformersManagerImpl
java.lang.Object
org.broadleafcommerce.common.weave.ConditionalFieldAnnotationCopyTransformersManagerImpl
- All Implemented Interfaces:
ConditionalFieldAnnotationCopyTransformersManager,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware
@Component("blConditionalFieldAnnotationsTransformersManager")
public class ConditionalFieldAnnotationCopyTransformersManagerImpl
extends Object
implements ConditionalFieldAnnotationCopyTransformersManager, org.springframework.beans.factory.BeanFactoryAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.beans.factory.config.ConfigurableBeanFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTransformMember(String entityName) Retrieve the direct copy transform config infovoidinit()isEntityEnabled(String entityName) Based on the entity name, this method will determine if the associated conditionalProperty from the Spring configuration is true.protected BooleanisPropertyEnabled(String propertyName) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
-
Field Details
-
beanFactory
protected org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory -
entityToPropertyMap
-
enabledEntities
-
-
Constructor Details
-
ConditionalFieldAnnotationCopyTransformersManagerImpl
public ConditionalFieldAnnotationCopyTransformersManagerImpl()
-
-
Method Details
-
init
@PostConstruct public void init() -
isEntityEnabled
Description copied from interface:ConditionalFieldAnnotationCopyTransformersManagerBased on the entity name, this method will determine if the associated conditionalProperty from the Spring configuration is true.- Specified by:
isEntityEnabledin interfaceConditionalFieldAnnotationCopyTransformersManager- Returns:
-
getTransformMember
Description copied from interface:ConditionalFieldAnnotationCopyTransformersManagerRetrieve the direct copy transform config info- Specified by:
getTransformMemberin interfaceConditionalFieldAnnotationCopyTransformersManager- Returns:
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
isPropertyEnabled
-