java.lang.Object
de.codecentric.boot.admin.client.registration.DefaultApplicationFactory
All Implemented Interfaces:
ApplicationFactory
Direct Known Subclasses:
CloudFoundryApplicationFactory, ReactiveApplicationFactory, ServletApplicationFactory

public class DefaultApplicationFactory extends Object implements ApplicationFactory
Default implementation for creating the Application instance which gets registered at the admin server.
Author:
Johannes Edmeier, Rene Felgenträger
  • Constructor Details

    • DefaultApplicationFactory

      public DefaultApplicationFactory(InstanceProperties instance, org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties management, org.springframework.boot.autoconfigure.web.ServerProperties server, org.springframework.boot.actuate.endpoint.web.PathMappedEndpoints pathMappedEndpoints, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpoint, MetadataContributor metadataContributor)
  • Method Details

    • createApplication

      public Application createApplication()
      Specified by:
      createApplication in interface ApplicationFactory
      Returns:
      Application instance;
    • getName

      protected String getName()
    • getServiceUrl

      protected String getServiceUrl()
    • getServiceBaseUrl

      protected String getServiceBaseUrl()
    • getServicePath

      protected String getServicePath()
    • getManagementUrl

      protected String getManagementUrl()
    • getManagementBaseUrl

      protected String getManagementBaseUrl()
    • isManagementPortEqual

      protected boolean isManagementPortEqual()
    • getEndpointsWebPath

      protected String getEndpointsWebPath()
    • getHealthUrl

      protected String getHealthUrl()
    • getMetadata

      protected Map<String,String> getMetadata()
    • getServiceHost

      protected String getServiceHost()
    • getManagementHost

      protected String getManagementHost()
    • getLocalHost

      protected InetAddress getLocalHost()
    • getLocalServerPort

      protected Integer getLocalServerPort()
    • getLocalManagementPort

      protected Integer getLocalManagementPort()
    • getHealthEndpointPath

      protected String getHealthEndpointPath()
    • getScheme

      protected String getScheme(@Nullable org.springframework.boot.web.server.Ssl ssl)
    • getHost

      protected String getHost(InetAddress address)
    • onWebServerInitialized

      @EventListener public void onWebServerInitialized(org.springframework.boot.web.context.WebServerInitializedEvent event)