public class SpringClientFactory extends Object implements org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
SpringClientFactory() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
<C extends com.netflix.client.IClient<?,?>> |
getClient(String name,
Class<C> clientClass)
Get the rest client associated with the name.
|
com.netflix.loadbalancer.ILoadBalancer |
getLoadBalancer(String name)
Get the load balancer associated with the name.
|
RibbonLoadBalancerContext |
getLoadBalancerContext(String serviceId)
Get the load balancer context associated with the name.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext parent) |
void |
setConfigurations(List<RibbonClientSpecification> configurations) |
public void setApplicationContext(org.springframework.context.ApplicationContext parent) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setConfigurations(List<RibbonClientSpecification> configurations)
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
public <C extends com.netflix.client.IClient<?,?>> C getClient(String name, Class<C> clientClass)
RuntimeException
- if any error occurspublic com.netflix.loadbalancer.ILoadBalancer getLoadBalancer(String name)
RuntimeException
- if any error occurspublic RibbonLoadBalancerContext getLoadBalancerContext(String serviceId)
RuntimeException
- if any error occursCopyright © 2014 Pivotal Software, Inc.. All rights reserved.