
config.template.flavour.quarkus-3-gradle-kts.AppInit.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fj-doc-maven-plugin Show documentation
Show all versions of fj-doc-maven-plugin Show documentation
Maven plugin to add Fugerit Venus Doc to a mavne project (fj-doc:generate)
<#import '../flavour-macro.ftl' as fhm>
package <@fhm.toProjectPackage context=context/>;
import io.quarkus.runtime.StartupEvent;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.event.Observes;
import lombok.extern.slf4j.Slf4j;
import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.inject.Inject;
import org.fugerit.java.doc.base.config.InitHandler;
@Slf4j
@ApplicationScoped
@RegisterForReflection( targets = { DocHelper.class, People.class } )
public class AppInit {
@Inject
DocHelper docHelper;
void onStart(@Observes StartupEvent ev) {
log.info("The application is starting...");
/*
* This will initialize all the doc handlers using async mode.
* (use method InitHandler.initDocAll() for synced startup)
*/
InitHandler.initDocAllAsync(
docHelper.getDocProcessConfig().getFacade().handlers() );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy