persistence.mongodb.configuration.MongoApplicationListener.java Source code

Java tutorial

Introduction

Here is the source code for persistence.mongodb.configuration.MongoApplicationListener.java

Source

/*
 * MongoApplicationListener.java is part of Document Manager (c) 2015.
 *
 * Document Manager is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Document Manager is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

package persistence.mongodb.configuration;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.stereotype.Component;

@Component
public class MongoApplicationListener implements ApplicationListener<ContextRefreshedEvent> {
    @Autowired
    private MongoOperations mongoOps;

    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {

    }
}