org.doxla.spring.automock
Class AutoMockExposingPostProcessor
java.lang.Object
org.doxla.spring.automock.AutoMockExposingPostProcessor
- All Implemented Interfaces:
- BeanFactoryPostProcessor
public class AutoMockExposingPostProcessor
- extends Object
- implements BeanFactoryPostProcessor
Expose 2 beans inside the spring container for each class that MockClassResolver resolves.
One will be the Mock and the other will be the proxy of that Mock.
The bean names will be resolved by the provided ProxyMockNameResolver or the DefaultProxyMockNameResolver
by default.
- Author:
- dano
- See Also:
MockClassResolver,
ProxyMockNameResolver,
DefaultProxyMockNameResolver,
Mock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoMockExposingPostProcessor
public AutoMockExposingPostProcessor()
postProcessBeanFactory
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
throws BeansException
- Specified by:
postProcessBeanFactory in interface BeanFactoryPostProcessor
- Throws:
BeansException
setMockClassResolver
public void setMockClassResolver(MockClassResolver mockClassResolver)
setProxyMockNameResolver
public void setProxyMockNameResolver(ProxyMockNameResolver proxyMockNameResolver)
Copyright © 2007. All Rights Reserved.