use of won.bot.framework.eventbot.action.impl.factory.InitFactoryAction in project webofneeds by researchstudio-sat.
the class FactoryBotInitBehaviour method onActivate.
@Override
protected void onActivate(Optional<Object> message) {
subscribeWithAutoCleanup(InitializeEvent.class, new ActionOnEventListener(context, new InitFactoryAction(context)));
subscribeWithAutoCleanup(InitFactoryFinishedEvent.class, new ActionOnFirstEventListener(context, new BaseEventBotAction(context) {
@Override
protected void doRun(Event event, EventListener executingListener) throws Exception {
FactoryBotInitBehaviour.this.deactivate();
}
}));
}
Aggregations