Java Code Examples for org.springframework.cloud.client.serviceregistry.ServiceRegistry

The following examples show how to use org.springframework.cloud.client.serviceregistry.ServiceRegistry. These examples are extracted from open source projects. 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
@Bean
@ConditionalOnEnabledEndpoint
public EurekaMgmtEndpoint serviceDiscoveryMgmtEndpoint(ServiceRegistry serviceRegistry,
    Environment environment) {
    EurekaMgmtEndpoint endpoint = new EurekaMgmtEndpoint(serviceRegistry);
    endpoint.setRegistration(registration);
    JmxEndpointProperties r;
    return endpoint;
}
 
Example 2
@Bean(initMethod = "registerStubs")
public StubsRegistrar stubsRegistrar(StubRunning stubRunning,
		ServiceRegistry<EurekaRegistration> serviceRegistry,
		ApplicationContext context, StubMapperProperties stubMapperProperties,
		InetUtils inetUtils, EurekaInstanceConfigBean eurekaInstanceConfigBean,
		EurekaClientConfigBean eurekaClientConfigBean) {
	return new EurekaStubsRegistrar(stubRunning, serviceRegistry,
			stubMapperProperties, inetUtils, eurekaInstanceConfigBean,
			eurekaClientConfigBean, context);
}
 
Example 3
public EurekaStubsRegistrar(StubRunning stubRunning,
		ServiceRegistry<EurekaRegistration> serviceRegistry,
		StubMapperProperties stubMapperProperties, InetUtils inetUtils,
		EurekaInstanceConfigBean eurekaInstanceConfigBean,
		EurekaClientConfigBean eurekaClientConfigBean, ApplicationContext context) {
	this.stubRunning = stubRunning;
	this.stubMapperProperties = stubMapperProperties;
	this.serviceRegistry = serviceRegistry;
	this.inetUtils = inetUtils;
	this.eurekaInstanceConfigBean = eurekaInstanceConfigBean;
	this.eurekaClientConfigBean = eurekaClientConfigBean;
	this.context = context;
}
 
Example 4
public CamelSpringCloudServiceRegistry(Collection<ConversionService> conversionServices, ServiceRegistry serviceRegistry) {
    this.definitions = new ArrayList<>();
    this.conversionServices = new ArrayList<>(conversionServices);
    this.serviceRegistry = serviceRegistry;
    this.registrationType = determineRegistrationType("register");
}
 
Example 5
public ServiceRegistry getNativeServiceRegistry() {
    return this.serviceRegistry;
}
 
Example 6
public <R extends Registration, T extends ServiceRegistry<R>> T getNativeServiceRegistry(Class<T> type) {
    return type.cast(this.serviceRegistry);
}
 
Example 7
Source Project: Moss   Source File: MossNacosAutoServiceRegistration.java    License: Apache License 2.0 4 votes vote down vote up
public MossNacosAutoServiceRegistration(ServiceRegistry<NacosRegistration> serviceRegistry,
                                        AutoServiceRegistrationProperties autoServiceRegistrationProperties, NacosRegistration registration, NacosRegistration registration1) {
    super(serviceRegistry, autoServiceRegistrationProperties, registration);
    this.registration = registration1;
}
 
Example 8
public EurekaServiceRegistryWrapper(ServiceRegistry<EurekaRegistration> serviceRegistry,
    ConfigurableEnvironment environment) {
    this.serviceRegistry = serviceRegistry;
    this.environment = environment;
}
 
Example 9
Source Project: summerframework   Source File: EurekaMgmtEndpoint.java    License: Apache License 2.0 4 votes vote down vote up
public EurekaMgmtEndpoint(ServiceRegistry serviceRegistry) {
    this.serviceRegistry = serviceRegistry;
}
 
Example 10
@Override
public void afterPropertiesSet() throws Exception {
    registration = applicationContext.getBean(Registration.class);
    serviceRegistry = applicationContext.getBean(ServiceRegistry.class);
}
 
Example 11
public NacosAutoServiceRegistration(ServiceRegistry<Registration> serviceRegistry,
		AutoServiceRegistrationProperties autoServiceRegistrationProperties,
		NacosRegistration registration) {
	super(serviceRegistry, autoServiceRegistrationProperties);
	this.registration = registration;
}
 
Example 12
public ServiceRegistryEndpoint(ServiceRegistry<?> serviceRegistry) {
	this.serviceRegistry = serviceRegistry;
}
 
Example 13
@Bean
ServiceRegistry serviceRegistry() {
	return new TestServiceRegistry();
}
 
Example 14
@Bean
ServiceRegistry serviceRegistry() {
	return new TestServiceRegistry();
}