Java Code Examples for com.netflix.ribbon.proxy.processor.AnnotationProcessorsProvider#DEFAULT

The following examples show how to use com.netflix.ribbon.proxy.processor.AnnotationProcessorsProvider#DEFAULT . 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: ServiceLoaderTest.java    From ribbon with Apache License 2.0 5 votes vote down vote up
@Test
public void testServiceLoader() {
    AnnotationProcessorsProvider annotations = AnnotationProcessorsProvider.DEFAULT;
    List<AnnotationProcessor> processors = annotations.getProcessors();
    boolean hasEVCacheProcessor = false;
    for (AnnotationProcessor processor: processors) {
        Class<?> clazz = processor.getClass();
        if (clazz.equals(EVCacheAnnotationProcessor.class)) {
            hasEVCacheProcessor = true;
            break;
        }
    }
    assertTrue(hasEVCacheProcessor);
}
 
Example 2
Source File: SecuredRibbonResourceFactory.java    From thorntail with Apache License 2.0 4 votes vote down vote up
public SecuredRibbonResourceFactory(final int maxChunkSize) {
    this(ClientConfigFactory.DEFAULT,
         new SecuredTransportFactory(maxChunkSize),
         AnnotationProcessorsProvider.DEFAULT);
}
 
Example 3
Source File: SecuredRibbonResourceFactory.java    From ARCHIVE-wildfly-swarm with Apache License 2.0 4 votes vote down vote up
public SecuredRibbonResourceFactory(final int maxChunkSize) {
    this(ClientConfigFactory.DEFAULT,
        new SecuredTransportFactory(maxChunkSize),
        AnnotationProcessorsProvider.DEFAULT);
}
 
Example 4
Source File: DefaultResourceFactory.java    From ribbon with Apache License 2.0 4 votes vote down vote up
public DefaultResourceFactory(ClientConfigFactory clientConfigFactory, RibbonTransportFactory transportFactory) {
    super(clientConfigFactory, transportFactory, AnnotationProcessorsProvider.DEFAULT);
}
 
Example 5
Source File: ProxyHttpResourceGroupFactory.java    From ribbon with Apache License 2.0 4 votes vote down vote up
ProxyHttpResourceGroupFactory(ClassTemplate<T> classTemplate) {
    this(classTemplate, new DefaultResourceFactory(ClientConfigFactory.DEFAULT, RibbonTransportFactory.DEFAULT, AnnotationProcessorsProvider.DEFAULT),
            AnnotationProcessorsProvider.DEFAULT);
}
 
Example 6
Source File: RibbonDynamicProxy.java    From ribbon with Apache License 2.0 4 votes vote down vote up
RibbonDynamicProxy(Class<T> clientInterface, HttpResourceGroup httpResourceGroup) {
    AnnotationProcessorsProvider processors = AnnotationProcessorsProvider.DEFAULT;
    registerAnnotationProcessors(processors);
    lifeCycle = new ProxyLifecycleImpl(httpResourceGroup);
    templateExecutorMap = MethodTemplateExecutor.from(httpResourceGroup, clientInterface, processors);
}
 
Example 7
Source File: MethodTemplateExecutorTest.java    From ribbon with Apache License 2.0 4 votes vote down vote up
private MethodTemplateExecutor createExecutor(Class<?> clientInterface, String methodName) {
    MethodTemplate methodTemplate = new MethodTemplate(methodByName(clientInterface, methodName));
    return new MethodTemplateExecutor(httpResourceGroupMock, methodTemplate, AnnotationProcessorsProvider.DEFAULT);
}
 
Example 8
Source File: EvCacheAnnotationTest.java    From ribbon with Apache License 2.0 4 votes vote down vote up
private MethodTemplateExecutor createExecutor(Class<?> clientInterface, String methodName) {
    MethodTemplate methodTemplate = new MethodTemplate(methodByName(clientInterface, methodName));
    return new MethodTemplateExecutor(httpResourceGroupMock, methodTemplate, AnnotationProcessorsProvider.DEFAULT);
}