@Override public void onEvent(final ApplicationEvent event) { final ApplicationEvent.Type type = event.getType(); switch (type) { case RELOAD_FINISHED: case INITIALIZATION_FINISHED: processApplicationStatistics(event); break; } }
@Override public void onEvent(final ApplicationEvent event) { final ApplicationEvent.Type type = event.getType(); switch (type) { case RELOAD_FINISHED: case INITIALIZATION_FINISHED: processApplicationStatistics(event); break; } }
@Override public void onEvent(ApplicationEvent event) { if (event.getType() == ApplicationEvent.Type.INITIALIZATION_APP_FINISHED) { resources = event.getResourceModel().getResources(); providers = event.getProviders(); final String resourceClasses = resources.stream() .map(x -> x.getClass().getCanonicalName()) .collect(Collectors.joining(", ")); final String providerClasses = providers.stream() .map(Class::getCanonicalName) .collect(Collectors.joining(", ")); LOGGER.debug("resources = {}", resourceClasses); LOGGER.debug("providers = {}", providerClasses); LOGGER.info(getEndpointsInfo()); } }
@Override public void onEvent(final ApplicationEvent event) { final ApplicationEvent.Type type = event.getType(); switch (type) { case INITIALIZATION_START:
@Override public void onEvent(final ApplicationEvent event) { final ApplicationEvent.Type type = event.getType(); switch (type) { case INITIALIZATION_START:
@Override public void onEvent(final ApplicationEvent event) { final ApplicationEvent.Type type = event.getType(); switch (type) { case RELOAD_FINISHED: case INITIALIZATION_FINISHED: processApplicationStatistics(event); break; } }
@Override public void onEvent(ApplicationEvent event) { if (event.getType() == this.EVENT_INITED) { GraphManagerFactory.this.manager = new GraphManager(conf); } }
@Override public void onEvent(final ApplicationEvent event) { final ApplicationEvent.Type type = event.getType(); switch (type) { case INITIALIZATION_START:
/** * <p>getType.</p> * * @return a {@link org.glassfish.jersey.server.monitoring.ApplicationEvent.Type} object. */ public Type getType() { return event.getType(); }
@Override public void onEvent(ApplicationEvent event) { logger.info("ApplicationEventListener.onEvent " + event.getType()); }
@Override public void onEvent(final ApplicationEvent event) { final ApplicationEvent.Type type = event.getType(); switch (type) { case RELOAD_FINISHED: case INITIALIZATION_FINISHED: processApplicationStatistics(event); break; } }
@Override public void onEvent(ApplicationEvent event) { if ( event.getType() == ApplicationEvent.Type.INITIALIZATION_APP_FINISHED ) { loggingConfig.logComponents(); } }
@Override public void onEvent(final ApplicationEvent event) { final ApplicationEvent.Type type = event.getType(); switch (type) { case RELOAD_FINISHED: case INITIALIZATION_FINISHED: processApplicationStatistics(event); break; } }
@Override public void onEvent(ApplicationEvent event) { if (event.getType() == ApplicationEvent.Type.INITIALIZATION_APP_FINISHED) { config.logComponents(); } }
@Override public void onEvent(final ApplicationEvent event) { final ApplicationEvent.Type type = event.getType(); switch (type) { case RELOAD_FINISHED: case INITIALIZATION_FINISHED: processApplicationStatistics(event); break; } }
@Override public void onEvent(final ApplicationEvent event) { final ApplicationEvent.Type type = event.getType(); switch (type) { case RELOAD_FINISHED: case INITIALIZATION_FINISHED: processApplicationStatistics(event); break; } }
@Override public void onEvent(ApplicationEvent event) { if (event.getType() == ApplicationEvent.Type.INITIALIZATION_APP_FINISHED) { registerMetricsForModel(event.getResourceModel()); } }
@Override public void onEvent(ApplicationEvent applicationEvent) { if (parameterMap == null && applicationEvent.getType() == ApplicationEvent.Type.INITIALIZATION_START) { Set<Class<?>> providers = applicationEvent.getProviders(); ClassLoader classLoader = applicationEvent.getResourceConfig().getClassLoader(); parameterMap = buildParameterMap(providers, classLoader); } }
public void onEvent(ApplicationEvent event) { if (event.getType() == ApplicationEvent.Type.INITIALIZATION_APP_FINISHED) { for (Resource resource : event.getResourceModel().getResources()) { for (ResourceMethod method : resource.getAllMethods()) { registerUnitOfWorkWithDetachAnnotations(method); } for (Resource childResource : resource.getChildResources()) { for (ResourceMethod method : childResource.getAllMethods()) { registerUnitOfWorkWithDetachAnnotations(method); } } } } }
public void onEvent(ApplicationEvent event) { if (event.getType() == ApplicationEvent.Type.INITIALIZATION_APP_FINISHED) { for (Resource resource : event.getResourceModel().getResources()) { for (ResourceMethod method : resource.getAllMethods()) { registerAuditedMethodAnnotations(method); } for (Resource childResource : resource.getChildResources()) { for (ResourceMethod method : childResource.getAllMethods()) { registerAuditedMethodAnnotations(method); } } } } }