![JAR search and dependency download from the Maven repository](/logo.png)
com.github.ibole.microservice.discovery.AbstractServiceDiscovery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of microservice-discovery Show documentation
Show all versions of microservice-discovery Show documentation
The discovery®istry module of microservice project
The newest version!
package com.github.ibole.microservice.discovery;
import com.github.ibole.microservice.common.ServerIdentifier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public abstract class AbstractServiceDiscovery implements ServiceDiscovery {
protected final Logger logger = LoggerFactory.getLogger(this.getClass().getName());
private ServerIdentifier identifier;
protected AbstractServiceDiscovery(ServerIdentifier identifier) {
this.identifier = identifier;
}
@Override
public ServerIdentifier getIdentifier() {
return this.identifier;
}
protected String buildBasePath() {
return this.getIdentifier().getRootPath().getPath();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy