public class BeanInstantiationSubstituter extends BeanInstantiationGuard
targetName| Constructor and Description | 
|---|
| BeanInstantiationSubstituter(ReadOnlyStatus readOnly,
                            java.lang.String targetName,
                            java.lang.String substituteClass)Construct a bean instantiation substituter. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | setBeanDefinitionForReadOnly(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)Act on the bean definition registry to make the target bean suitable for read-only mode. | 
postProcessBeanFactory, setIsWriteDb, setIsWriteRepopublic BeanInstantiationSubstituter(ReadOnlyStatus readOnly, java.lang.String targetName, java.lang.String substituteClass)
readOnly - the read-only statustargetName - the name of a bean that needs to writesubstituteClass - the name of the class implementing the read-only variant of the beanprotected void setBeanDefinitionForReadOnly(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
BeanInstantiationGuardsetBeanDefinitionForReadOnly in class BeanInstantiationGuardregistry - the bean definition registry