Class AnalyticsConfig

java.lang.Object
ubic.gemma.rest.analytics.ga4.AnalyticsConfig

@Configuration @Profile("web") public class AnalyticsConfig extends Object
Java replacement for applicationContext-analytics.xml, wiring the Google Analytics 4 provider used by the gemma-rest module's request/event listeners.

Active only under the web profile (matching the profile="web" attribute on the original XML beans file) — the CLI / non-web profiles don't ship a GA provider.

The exposed bean implements AnalyticsProvider and is autowired by type into the request/event listeners (see AnalyticsApplicationEventListener and AnalyticsRequestEventListener); the bean id is the Spring-default short class name (googleAnalytics4Provider) which matches what the XML produced.

  • Constructor Details

    • AnalyticsConfig

      public AnalyticsConfig()
  • Method Details

    • googleAnalytics4Provider

      @Bean public GoogleAnalytics4Provider googleAnalytics4Provider(org.springframework.security.authentication.AuthenticationTrustResolver authenticationTrustResolver)