@Bean @ConditionalOnEnabledEndpoint("docs") @ConditionalOnResource(resources = "classpath:/META-INF/resources/spring-boot-actuator/docs/index.html") public DocsMvcEndpoint docsMvcEndpoint( ManagementServletContext managementServletContext) { return new DocsMvcEndpoint(managementServletContext); }
@Bean @ConditionalOnBean(name = {"serverAcceptor", "serverSessionSettings"}) @ConditionalOnClass({Acceptor.class, SessionSettings.class}) @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint("quickfixjserver") public QuickFixJServerEndpoint quickfixjServerEndpoint(Acceptor serverAcceptor, SessionSettings serverSessionSettings) { return new QuickFixJServerEndpoint(serverAcceptor, serverSessionSettings); }
@Bean @ConditionalOnBean(name = {"clientInitiator", "clientSessionSettings"}) @ConditionalOnClass({Initiator.class, SessionSettings.class}) @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint("quickfixjclient") public QuickFixJClientEndpoint quickfixjClientEndpoint(Initiator clientInitiator, SessionSettings clientSessionSettings) { return new QuickFixJClientEndpoint(clientInitiator, clientSessionSettings); }
@Bean @ConditionalOnBean(SnapshotEventCreationEndpoint.class) @ConditionalOnEnabledEndpoint("snapshot_event_creation") public SnapshotEventCreationMvcEndpoint snapshotEventCreationMvcEndpoint( SnapshotEventCreationEndpoint snapshotEventCreationEndpoint) { return new SnapshotEventCreationMvcEndpoint(snapshotEventCreationEndpoint); }
@ConditionalOnEnabledEndpoint("actuator") @Bean public HalJsonMvcEndpoint halJsonMvcEndpoint( ManagementServletContext managementServletContext, ResourceProperties resources, ResourceLoader resourceLoader) { if (HalBrowserMvcEndpoint.getHalBrowserLocation(resourceLoader) != null) { return new HalBrowserMvcEndpoint(managementServletContext); } return new HalJsonMvcEndpoint(managementServletContext); }
@Bean @ConditionalOnEnabledEndpoint("cereebro") @ConditionalOnMissingBean(SnitchEndpoint.class) public CereebroSnitchMvcEndpoint snitchMvcEndpoint(List<RelationshipDetector> detectors) { return new CereebroSnitchMvcEndpoint(analyzer); }
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint("etcd") public EtcdEndpoint etcdEndpoint(Client etcdClient) { return new EtcdEndpoint(etcdClient); }
@Bean @ConditionalOnBean(EnvironmentEndpoint.class) @ConditionalOnEnabledEndpoint("env") public EnvironmentMvcEndpoint environmentMvcEndpoint(EnvironmentEndpoint delegate) { return new EnvironmentMvcEndpoint(delegate); }
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint("heapdump") public HeapdumpMvcEndpoint heapdumpMvcEndpoint() { return new HeapdumpMvcEndpoint(); }
@Bean @ConditionalOnBean(MetricsEndpoint.class) @ConditionalOnEnabledEndpoint("metrics") public MetricsMvcEndpoint metricsMvcEndpoint(MetricsEndpoint delegate) { return new MetricsMvcEndpoint(delegate); }
@Bean @ConditionalOnEnabledEndpoint("logfile") @Conditional(LogFileCondition.class) public LogFileMvcEndpoint logfileMvcEndpoint() { return new LogFileMvcEndpoint(); }
@Bean @ConditionalOnBean(ShutdownEndpoint.class) @ConditionalOnEnabledEndpoint(value = "shutdown", enabledByDefault = false) public ShutdownMvcEndpoint shutdownMvcEndpoint(ShutdownEndpoint delegate) { return new ShutdownMvcEndpoint(delegate); }
@Bean @ConditionalOnBean(PrometheusEndpoint.class) @ConditionalOnEnabledEndpoint("prometheus") PrometheusMvcEndpoint prometheusMvcEndpoint(PrometheusEndpoint prometheusEndpoint) { return new PrometheusMvcEndpoint(prometheusEndpoint); }
@Bean @ConditionalOnBean(PrometheusEndpoint.class) @ConditionalOnEnabledEndpoint("prometheus") public PrometheusMvcEndpoint prometheusEndpointFix(PrometheusEndpoint prometheusEndpoint) { return new PrometheusMvcEndpoint(prometheusEndpoint); }