R
- Registration type passed to the ServiceRegistry
.public abstract class AbstractAutoServiceRegistration<R extends Registration> extends Object implements AutoServiceRegistration, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
ServiceRegistry
implementations.
TODO: Document the lifecycle.Modifier | Constructor and Description |
---|---|
protected |
AbstractAutoServiceRegistration(ServiceRegistry<R> serviceRegistry)
Deprecated.
|
protected |
AbstractAutoServiceRegistration(ServiceRegistry<R> serviceRegistry,
AutoServiceRegistrationProperties properties) |
Modifier and Type | Method and Description |
---|---|
void |
bind(org.springframework.boot.web.context.WebServerInitializedEvent event)
Deprecated.
|
protected void |
deregister()
De-register the local service with the
ServiceRegistry . |
protected void |
deregisterManagement()
De-register the local management service with the
ServiceRegistry . |
void |
destroy() |
protected String |
getAppName()
Deprecated.
|
protected abstract Object |
getConfiguration()
Deprecated.
|
protected org.springframework.context.ApplicationContext |
getContext() |
protected org.springframework.core.env.Environment |
getEnvironment()
Deprecated.
|
protected Integer |
getManagementPort()
Deprecated.
|
protected abstract R |
getManagementRegistration() |
protected String |
getManagementServiceId()
Deprecated.
|
protected String |
getManagementServiceName()
Deprecated.
|
int |
getOrder() |
int |
getPhase() |
protected AtomicInteger |
getPort()
Deprecated.
|
protected abstract R |
getRegistration() |
protected AtomicBoolean |
getRunning() |
protected ServiceRegistry<R> |
getServiceRegistry() |
boolean |
isAutoStartup() |
protected abstract boolean |
isEnabled() |
boolean |
isRunning() |
void |
onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event) |
protected void |
register()
Register the local service with the
ServiceRegistry . |
protected void |
registerManagement()
Register the local management service with the
ServiceRegistry . |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
protected boolean |
shouldRegisterManagement() |
void |
start() |
void |
stop() |
@Deprecated protected AbstractAutoServiceRegistration(ServiceRegistry<R> serviceRegistry)
protected AbstractAutoServiceRegistration(ServiceRegistry<R> serviceRegistry, AutoServiceRegistrationProperties properties)
protected org.springframework.context.ApplicationContext getContext()
public void onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
@Deprecated public void bind(org.springframework.boot.web.context.WebServerInitializedEvent event)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
@Deprecated protected org.springframework.core.env.Environment getEnvironment()
@Deprecated protected AtomicInteger getPort()
public boolean isAutoStartup()
public void start()
protected boolean shouldRegisterManagement()
ServiceRegistry
.@Deprecated protected abstract Object getConfiguration()
protected abstract boolean isEnabled()
@Deprecated protected String getManagementServiceId()
@Deprecated protected String getManagementServiceName()
@Deprecated protected Integer getManagementPort()
@Deprecated protected String getAppName()
@PreDestroy public void destroy()
public boolean isRunning()
protected AtomicBoolean getRunning()
public int getOrder()
public int getPhase()
protected ServiceRegistry<R> getServiceRegistry()
protected abstract R getRegistration()
protected abstract R getManagementRegistration()
protected void register()
ServiceRegistry
.protected void registerManagement()
ServiceRegistry
.protected void deregister()
ServiceRegistry
.protected void deregisterManagement()
ServiceRegistry
.public void stop()
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.