@Singleton public class DefaultServiceInstanceIdGenerator extends Object implements ServiceInstanceIdGenerator
Modifier | Constructor and Description |
---|---|
protected |
DefaultServiceInstanceIdGenerator()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
generateId(Environment environment,
ServiceInstance serviceInstance)
Generates a service ID.
|
protected DefaultServiceInstanceIdGenerator()
@Nonnull public String generateId(Environment environment, ServiceInstance serviceInstance)
ServiceInstanceIdGenerator
generateId
in interface ServiceInstanceIdGenerator
environment
- The environmentserviceInstance
- The service instance