2 * ============LICENSE_START=======================================================
3 * PNF-REGISTRATION-HANDLER
4 * ================================================================================ Copyright (C)
5 * 2018 NOKIA Intellectual Property. All rights reserved.
6 * ================================================================================ Licensed under
7 * the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software distributed under the License
13 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14 * or implied. See the License for the specific language governing permissions and limitations under
15 * the License. ============LICENSE_END=========================================================
18 package org.onap.pnfsimulator;
20 import java.util.concurrent.TimeUnit;
21 import org.onap.pnfsimulator.message.MessageProvider;
22 import org.onap.pnfsimulator.simulator.validation.JSONValidator;
23 import org.springframework.boot.SpringApplication;
24 import org.springframework.boot.autoconfigure.SpringBootApplication;
25 import org.springframework.context.annotation.Bean;
26 import org.springframework.scheduling.annotation.EnableAsync;
28 @SpringBootApplication
32 public static void main(String[] args) throws InterruptedException {
33 SpringApplication.run(Main.class, args);
35 TimeUnit.SECONDS.sleep(5);
36 System.out.println("Start sending VES events");
42 public MessageProvider messageProvider() {
43 return new MessageProvider();
47 public JSONValidator jsonValidator() {
48 return new JSONValidator();