Revision 6d636c9e
Added by Andreas Kohlbecker over 5 years ago
src/main/java/eu/etaxonomy/vaadin/mvp/AbstractEditorPresenter.java | ||
---|---|---|
42 | 42 |
|
43 | 43 |
FlushMode previousPreSaveEvenFlushMode = null; |
44 | 44 |
|
45 |
protected BeanInstantiator<DTO> beanInstantiator = null; |
|
46 |
|
|
47 | 45 |
/** |
48 | 46 |
* Load the bean to be edited in the editor freshly from the persistent storage. |
49 | 47 |
* Ore create an new empty instance in case the supplied <code>identifier</code> is <code>null</code>. |
... | ... | |
63 | 61 |
|
64 | 62 |
} |
65 | 63 |
|
66 |
/** |
|
67 |
* @param beanInstantiator the beanInstantiator to set |
|
68 |
*/ |
|
69 |
public void setBeanInstantiator(BeanInstantiator<DTO> beanInstantiator) { |
|
70 |
this.beanInstantiator = beanInstantiator; |
|
71 |
} |
|
72 | 64 |
|
73 | 65 |
@EventBusListenerMethod |
74 | 66 |
public void onEditorPreSaveEvent(EditorPreSaveEvent<DTO> preSaveEvent){ |
Also available in: Unified diff
ref #7648 generalizing bean instantiation in cdm presenters