org.springframework.cloud.consul.serviceregistry.ConsulRegistrationCustomizer Java Examples
The following examples show how to use
org.springframework.cloud.consul.serviceregistry.ConsulRegistrationCustomizer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConsulLightminClientDiscoveryConfiguration.java From spring-batch-lightmin with Apache License 2.0 | 6 votes |
@Bean @ConditionalOnMissingBean(ConsulAutoRegistration.class) public ConsulAutoRegistration consulAutoRegistration( final MetaDataExtender metaDataExtender, final AutoServiceRegistrationProperties autoServiceRegistrationProperties, final ConsulDiscoveryProperties consulDiscoveryProperties, final ApplicationContext applicationContext, final List<ConsulRegistrationCustomizer> consulRegistrationCustomizers, final List<ConsulManagementRegistrationCustomizer> managementRegistrationCustomizers, final HeartbeatProperties heartbeatProperties) { metaDataExtender.extendMetaData(); return ConsulAutoRegistration.registration( autoServiceRegistrationProperties, consulDiscoveryProperties, applicationContext, consulRegistrationCustomizers, managementRegistrationCustomizers, heartbeatProperties); }
Example #2
Source File: SidecarConsulAutoConfiguration.java From spring-cloud-alibaba with Apache License 2.0 | 5 votes |
@Bean public ConsulAutoRegistration consulRegistration( AutoServiceRegistrationProperties autoServiceRegistrationProperties, ConsulDiscoveryProperties properties, ApplicationContext applicationContext, ObjectProvider<List<ConsulRegistrationCustomizer>> registrationCustomizers, ObjectProvider<List<ConsulManagementRegistrationCustomizer>> managementRegistrationCustomizers, HeartbeatProperties heartbeatProperties, SidecarProperties sidecarProperties) { return SidecarConsulAutoRegistration.registration( autoServiceRegistrationProperties, properties, applicationContext, registrationCustomizers.getIfAvailable(), managementRegistrationCustomizers.getIfAvailable(), heartbeatProperties, sidecarProperties); }
Example #3
Source File: GrpcMetadataConsulConfiguration.java From grpc-spring-boot-starter with MIT License | 5 votes |
/** * Creates a bean that registers the gRPC endpoint via consul. * * @param grpcServerProperties The server properties used to fill in the blanks. * @return The newly created consulGrpcRegistrationCustomizer bean. */ @ConditionalOnMissingBean @Bean public ConsulRegistrationCustomizer consulGrpcRegistrationCustomizer( final GrpcServerProperties grpcServerProperties) { return new ConsulGrpcRegistrationCustomizer(grpcServerProperties); }
Example #4
Source File: GrpcMetadataConsulConfiguration.java From grpc-spring-boot-starter with MIT License | 5 votes |
/** * Creates a bean that registers the gRPC endpoint via consul. * * @param grpcServerProperties The server properties used to fill in the blanks. * @return The newly created consulGrpcRegistrationCustomizer bean. */ @ConditionalOnMissingBean @Bean public ConsulRegistrationCustomizer consulGrpcRegistrationCustomizer( final GrpcServerProperties grpcServerProperties) { return new ConsulGrpcRegistrationCustomizer(grpcServerProperties); }