public DefaultApplicationFactory(InstanceProperties instance, ManagementServerProperties management, ServerProperties server, PathMappedEndpoints pathMappedEndpoints, WebEndpointProperties webEndpoint) { this.instance = instance; this.management = management; this.server = server; this.pathMappedEndpoints = pathMappedEndpoints; this.webEndpoint = webEndpoint; this.timestamp = OffsetDateTime.now(); }
public ServletApplicationFactory(InstanceProperties instance, ManagementServerProperties management, ServerProperties server, ServletContext servletContext, PathMappedEndpoints pathMappedEndpoints, WebEndpointProperties webEndpoint) { super(instance, management, server, pathMappedEndpoints, webEndpoint); this.servletContext = servletContext; this.servlet = server.getServlet(); this.managementServlet = management.getServlet(); }
@Bean @ConditionalOnMissingBean public ApplicationFactory applicationFactory(InstanceProperties instance, ManagementServerProperties management, ServerProperties server, ServletContext servletContext, PathMappedEndpoints pathMappedEndpoints, WebEndpointProperties webEndpoint) { return new ServletApplicationFactory(instance, management, server, servletContext, pathMappedEndpoints, webEndpoint); }
@Bean @ConditionalOnMissingBean public ApplicationFactory applicationFactory(InstanceProperties instance, ManagementServerProperties management, ServerProperties server, PathMappedEndpoints pathMappedEndpoints, WebEndpointProperties webEndpoint) { return new DefaultApplicationFactory(instance, management, server, pathMappedEndpoints, webEndpoint); }
@Autowired public NavigationConfiguration(final NavBar mainNavBar, final WebEndpointProperties webEndpointProperties) { mainNavBar.register(navBarItem(0, "Home", "/")); mainNavBar.register(navBarItem(2, "Metrics", webEndpointProperties.getBasePath() + "/metrics")); }
@Autowired public GlobalModelAttributes(final WebEndpointProperties webEndpointProperties, final EdisonApplicationProperties edisonApplicationProperties) { this.webEndpointProperties = webEndpointProperties; this.edisonApplicationProperties = edisonApplicationProperties; }