Class MinimalDataGenerator

  • All Implemented Interfaces:
    EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

    public class MinimalDataGenerator
    extends Object
    implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
    Generates the minimal data needed when the application is booted with no data at all.
    Author:
    jbarrez
    • Constructor Detail

      • MinimalDataGenerator

        public MinimalDataGenerator​(ServerConfigService serverConfigService)
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>