- All Implemented Interfaces:
- java.util.EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
public class DummyDataInserter
extends AbstractDataInserter
This is an empty dummy implementation of the AbstractDataInserter
which can be used in situations where inserting project or application specific
data is optional. In this case the spring configuration will either include the according
AbstractDataInserter implementation or not, depending on environment parameters.
AbstractDataInserter implements ApplicationListener and thus must not be null,
therefore it is not possible to supply null
instead of the specific
data inserter. The DummyDataInserter solves this problems and should be returned instead of null
.
- Since:
- Jul 27, 2017
- Author:
- a.kohlbecker