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