@Component(value="blConditionalFieldAnnotationsTransformersManager") public class ConditionalFieldAnnotationCopyTransformersManagerImpl extends Object implements ConditionalFieldAnnotationCopyTransformersManager, org.springframework.beans.factory.BeanFactoryAware
Modifier and Type | Field and Description |
---|---|
protected org.springframework.beans.factory.config.ConfigurableBeanFactory |
beanFactory |
protected Map<String,ConditionalFieldAnnotationCopyTransformMemberDTO> |
enabledEntities |
protected Map<String,ConditionalFieldAnnotationCopyTransformMemberDTO> |
entityToPropertyMap |
Constructor and Description |
---|
ConditionalFieldAnnotationCopyTransformersManagerImpl() |
Modifier and Type | Method and Description |
---|---|
ConditionalFieldAnnotationCopyTransformMemberDTO |
getTransformMember(String entityName)
Retrieve the direct copy transform config info
|
void |
init() |
Boolean |
isEntityEnabled(String entityName)
Based on the entity name, this method will determine if the associated conditionalProperty from the Spring configuration is true.
|
protected Boolean |
isPropertyEnabled(String propertyName) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
protected org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory
protected Map<String,ConditionalFieldAnnotationCopyTransformMemberDTO> entityToPropertyMap
protected Map<String,ConditionalFieldAnnotationCopyTransformMemberDTO> enabledEntities
public ConditionalFieldAnnotationCopyTransformersManagerImpl()
@PostConstruct public void init()
public Boolean isEntityEnabled(String entityName)
ConditionalFieldAnnotationCopyTransformersManager
isEntityEnabled
in interface ConditionalFieldAnnotationCopyTransformersManager
public ConditionalFieldAnnotationCopyTransformMemberDTO getTransformMember(String entityName)
ConditionalFieldAnnotationCopyTransformersManager
getTransformMember
in interface ConditionalFieldAnnotationCopyTransformersManager
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
Copyright © 2022. All rights reserved.