Class BotManager

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

    @Component
    public class BotManager
    extends Object
    implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
    BotManger component starts right after server startup. For each Bot configured in BotConfig, sets properties, adds it to the world, and starts self test. If it passes, Bot remains in the world as a an active object, otherwise it's marked inactive.
    Author:
    joe
    • Constructor Detail

      • BotManager

        public BotManager()
    • 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>