Class ServiceInstanceMetadataCustomizer
java.lang.Object
org.apache.dubbo.registry.client.metadata.ServiceInstanceMetadataCustomizer
- All Implemented Interfaces:
Comparable<Prioritized>,Prioritized,ServiceInstanceCustomizer
Intercepting instance to load instance-level params from different sources before being registered into registry.
The sources can be one or both of the following:- os environment
- vm options
- all keys specified by sources above
- keys found in metadata info
-
Field Summary
Fields inherited from interface org.apache.dubbo.common.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(ServiceInstance serviceInstance, ApplicationModel applicationModel) Customizesthe service instanceMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.common.lang.Prioritized
compareTo, getPriority
-
Constructor Details
-
ServiceInstanceMetadataCustomizer
public ServiceInstanceMetadataCustomizer()
-
-
Method Details
-
customize
Description copied from interface:ServiceInstanceCustomizerCustomizesthe service instance- Specified by:
customizein interfaceServiceInstanceCustomizer- Parameters:
serviceInstance-the service instance
-