public class RabbitClientFactoryImpl extends Object implements RabbitClientFactory
| Constructor and Description |
|---|
RabbitClientFactoryImpl(org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate,
RabbitClientAnnotationProcessor annotationProcessor) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
forType(Class<T> toImplement)
Generates a Rabbit RPC client from the
toImplement interface. |
<T> T |
forType(ClassLoader classLoader,
Class<T> toImplement)
Generates a Rabbit RPC client from the
toImplement interface. |
public RabbitClientFactoryImpl(org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate,
RabbitClientAnnotationProcessor annotationProcessor)
public <T> T forType(Class<T> toImplement)
RabbitClientFactorytoImplement interface.forType in interface RabbitClientFactoryT - type of the interface.toImplement - the interface to generate an RPC client implementation from.toImplement interface.public <T> T forType(ClassLoader classLoader, Class<T> toImplement)
RabbitClientFactorytoImplement interface.forType in interface RabbitClientFactoryT - type of the interface.classLoader - the ClassLoader to be used for Proxy generation.toImplement - the interface to generate an RPC client implementation from.toImplement interface.Copyright © 2019. All rights reserved.