Class DefaultApplicationFactory
java.lang.Object
de.codecentric.boot.admin.client.registration.DefaultApplicationFactory
- All Implemented Interfaces:
ApplicationFactory
- Direct Known Subclasses:
CloudFoundryApplicationFactory,ReactiveApplicationFactory,ServletApplicationFactory
Default implementation for creating the
Application instance which gets
registered at the admin server.- Author:
- Johannes Edmeier, Rene Felgenträger
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultApplicationFactory(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 Summary
Modifier and TypeMethodDescriptionprotected Stringprotected Stringprotected Stringprotected StringgetHost(InetAddress address) protected InetAddressprotected Integerprotected Integerprotected Stringprotected Stringprotected Stringprotected StringgetName()protected StringgetScheme(org.springframework.boot.web.server.Ssl ssl) protected Stringprotected Stringprotected Stringprotected Stringprotected booleanvoidonWebServerInitialized(org.springframework.boot.web.context.WebServerInitializedEvent event)
-
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
- Specified by:
createApplicationin interfaceApplicationFactory- Returns:
Applicationinstance;
-
getName
-
getServiceUrl
-
getServiceBaseUrl
-
getServicePath
-
getManagementUrl
-
getManagementBaseUrl
-
isManagementPortEqual
protected boolean isManagementPortEqual() -
getEndpointsWebPath
-
getHealthUrl
-
getMetadata
-
getServiceHost
-
getManagementHost
-
getLocalHost
-
getLocalServerPort
-
getLocalManagementPort
-
getHealthEndpointPath
-
getScheme
-
getHost
-
onWebServerInitialized
@EventListener public void onWebServerInitialized(org.springframework.boot.web.context.WebServerInitializedEvent event)
-