|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.joseluismartin.mock.MockReplacer
public class MockReplacer
Replace singletons in configurableListableBeanFactory with mocks
| Constructor Summary | |
|---|---|
MockReplacer()
|
|
| Method Summary | |
|---|---|
void |
add(String name,
Object obj)
Add a replaced mock |
Map<String,Object> |
getReplacedBeans()
get the map with replaced beans |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory)
implements BeanFactoryPostProcessor.postProcessBeanFactory(ConfigurableListableBeanFactory) |
void |
setReplacedBeans(Map<String,Object> replacedBeans)
Set the replacedBeans Map |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockReplacer()
| Method Detail |
|---|
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory)
throws org.springframework.beans.BeansException
BeanFactoryPostProcessor.postProcessBeanFactory(ConfigurableListableBeanFactory)
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessorfactory - the BeanFactory to postprocess
org.springframework.beans.BeansException - if fail
public final void add(String name,
Object obj)
name - name of singletonobj - mockpublic Map<String,Object> getReplacedBeans()
public void setReplacedBeans(Map<String,Object> replacedBeans)
replacedBeans - Map with replaced beans
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||