Class ConditionalDirectCopyTransformersManagerImpl
java.lang.Object
org.broadleafcommerce.common.weave.ConditionalDirectCopyTransformersManagerImpl
- All Implemented Interfaces:
ConditionalDirectCopyTransformersManager,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware
@Service("blConditionalDirectCopyTransformersManager")
public class ConditionalDirectCopyTransformersManagerImpl
extends Object
implements org.springframework.beans.factory.BeanFactoryAware, ConditionalDirectCopyTransformersManager
- Author:
- Jeff Fischer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.beans.factory.config.ConfigurableBeanFactoryprotected Map<String,ConditionalDirectCopyTransformMemberDto> protected Map<String,ConditionalDirectCopyTransformMemberDto> -
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
-
entityToPropertyMap
-
enabledEntities
-
beanFactory
protected org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory
-
-
Constructor Details
-
ConditionalDirectCopyTransformersManagerImpl
public ConditionalDirectCopyTransformersManagerImpl()
-
-
Method Details
-
init
@PostConstruct public void init() -
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
-
isEntityEnabled
Description copied from interface:ConditionalDirectCopyTransformersManagerBased on the entity name, this method will determine if the associated conditionalProperty from the Spring configuration is true.- Specified by:
isEntityEnabledin interfaceConditionalDirectCopyTransformersManager- Returns:
-
getTransformMember
Description copied from interface:ConditionalDirectCopyTransformersManagerRetrieve the direct copy transform config info- Specified by:
getTransformMemberin interfaceConditionalDirectCopyTransformersManager- Returns:
-
isPropertyEnabled
-