@Test public void testOnApplicationEvent() { ev.registerService(serviceDef, service, resolver); ev.onApplicationEvent(new ContextRefreshedEvent(appContext)); verify(service).init(any(ContainerContext.class)); }
@Override public void onApplicationEvent(ApplicationEvent event) { if (event instanceof ContextRefreshedEvent) { dumpProperties(); setIdentityResolver(identityResolverFactory.getIdentityResolver()); start(); } }
ServiceRegisterableExecutionVenue extends BaseExecutionVenue implements ApplicationListener, ServiceRegistrar { @Override public void onApplicationEvent(ApplicationEvent event) { if (event instanceof ContextRefreshedEvent) { dumpProperties(); setIdentityResolver(identityResolverFactory.getIdentityResolver()); start(); } } }
ServiceRegisterableExecutionVenue extends BaseExecutionVenue implements ApplicationListener, ServiceRegistrar { @Override public void onApplicationEvent(ApplicationEvent event) { if (event instanceof ContextRefreshedEvent) { dumpProperties(); setIdentityResolver(identityResolverFactory.getIdentityResolver()); start(); } }  }
ServiceRegisterableExecutionVenue extends BaseExecutionVenue implements ApplicationListener, ServiceRegistrar { @Override public void onApplicationEvent(ApplicationEvent event) { if (event instanceof ContextRefreshedEvent) { dumpProperties(); setIdentityResolver(identityResolverFactory.getIdentityResolver()); start(); } }  void setIdentityResolverFactory(IdentityResolverFactory identityResolverFactory); void setServiceLogManagerFactory(ServiceLogManagerFactory serviceLogManagerFactory); void setStats(KPIMonitor stats); void setMonitorRegistry(MonitorRegistry monitorRegistry); void setTracer(Tracer tracer); Tracer getTracer(); @Override void registerService(ServiceDefinition serviceDefinition, Service implementation, ExecutableResolver resolver); @Override void registerService(String namespace, ServiceDefinition serviceDefinition, Service implementation, ExecutableResolver resolver); Map<String, Set<ServiceDefinition>> getNamespaceServiceDefinitionMap(); @Override void onApplicationEvent(ApplicationEvent event); ServiceLogManager getServiceLogManager(String namespace, String serviceName, ServiceVersion version); }
ServiceRegisterableExecutionVenue extends BaseExecutionVenue implements ApplicationListener, ServiceRegistrar { @Override public void onApplicationEvent(ApplicationEvent event) { if (event instanceof ContextRefreshedEvent) { dumpProperties(); setIdentityResolver(identityResolverFactory.getIdentityResolver()); start(); } }  void setIdentityResolverFactory(IdentityResolverFactory identityResolverFactory); void setServiceLogManagerFactory(ServiceLogManagerFactory serviceLogManagerFactory); void setStats(KPIMonitor stats); void setMonitorRegistry(MonitorRegistry monitorRegistry); void setTracer(Tracer tracer); Tracer getTracer(); @Override void registerService(ServiceDefinition serviceDefinition, Service implementation, ExecutableResolver resolver); @Override void registerService(String namespace, ServiceDefinition serviceDefinition, Service implementation, ExecutableResolver resolver); Map<String, Set<ServiceDefinition>> getNamespaceServiceDefinitionMap(); @Override void onApplicationEvent(ApplicationEvent event); ServiceLogManager getServiceLogManager(String namespace, String serviceName, ServiceVersion version);  }