Project

General

Profile

Download (1.23 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.api.application;
10

    
11
import org.springframework.context.event.ContextRefreshedEvent;
12

    
13
/**
14
 * This is an empty dummy implementation of the AbstractDataInserter
15
 * which can be used in situations where inserting project or application specific
16
 * data is optional. In this case the spring configuration will either include the according
17
 * AbstractDataInserter implementation or not, depending on environment parameters.
18
 * AbstractDataInserter implements ApplicationListener and thus must not be null,
19
 * therefore it is not possible to supply <code>null</code> instead of the specific
20
 * data inserter. The DummyDataInserter solves this problems and should be returned instead of <code>null</code>.
21
 *
22
 * @author a.kohlbecker
23
 * @since Jul 27, 2017
24
 *
25
 */
26
public class DummyDataInserter extends AbstractDataInserter {
27

    
28
    /**
29
     * {@inheritDoc}
30
     */
31
    @Override
32
    public void onApplicationEvent(ContextRefreshedEvent event) {
33
        // the dummy does nothing
34
    }
35

    
36
}
(5-5/12)