All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.abavilla.fpi.fw.FPIApplication Maven / Gradle / Ivy

Go to download

Reactive API backend Framework, built on top of Quarkus, for quick and easy REST API development - Core module

There is a newer version: 1.8.11
Show newest version
/*************************************************************************
 * Copyright (C) 2022 Vince Jerald Villamora @ https://vincejv.com       *
 *                                                                       *
 * Licensed under the Apache License, Version 2.0 (the "License");       *
 * you may not use this file except in compliance with the License.      *
 * You may obtain a copy of the License at                               *
 *                                                                       *
 *   http://www.apache.org/licenses/LICENSE-2.0                          *
 *                                                                       *
 * Unless required by applicable law or agreed to in writing, software   *
 * distributed under the License is distributed on an "AS IS" BASIS,     *
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or       *
 * implied. See the License for the specific language governing          *
 * permissions and limitations under the License.                        *
 *************************************************************************/

package com.abavilla.fpi.fw;

import io.quarkus.logging.Log;
import io.quarkus.runtime.StartupEvent;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.event.Observes;

/**
 * FPI Application starting point
 *
 * @author Vince Villamora
 */
@ApplicationScoped
public class FPIApplication {

  public void onStart(@Observes StartupEvent ev) {
    Log.info("FPI application is starting...");
    postStart();
  }

  /**
   * Additional methods to invoke after application startup.
   */
  public void postStart() {
    // implementing class will provide the functionality optionally
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy