Package org.springframework.data.rest.core.projection

Examples of org.springframework.data.rest.core.projection.ProxyProjectionFactory$TargetClassAwareMethodInterceptor


  }

  private List<HandlerMethodArgumentResolver> defaultMethodArgumentResolvers() {

    PersistentEntityResourceAssemblerArgumentResolver peraResolver = new PersistentEntityResourceAssemblerArgumentResolver(
        repositories(), entityLinks(), config().projectionConfiguration(), new ProxyProjectionFactory(beanFactory),
        resourceMappings());

    HateoasPageableHandlerMethodArgumentResolver pageableResolver = pageableResolver();
    HandlerMethodArgumentResolver defaultedPageableResolver = new DefaultedPageableHandlerMethodArgumentResolver(
        pageableResolver);
View Full Code Here


  public void invokesProcessorsForProjection() throws Exception {

    ProjectionProcessor projectionProcessor = new ProjectionProcessor();
    resourceProcessors.add(projectionProcessor);

    ProxyProjectionFactory factory = new ProxyProjectionFactory(new DefaultListableBeanFactory());
    SampleProjection projection = factory.createProjection(new Sample(), SampleProjection.class);
    Resource<SampleProjection> resource = new Resource<SampleProjection>(projection);

    invokeReturnValueHandler("object", is(resource), resource);
    assertThat(projectionProcessor.invoked, is(true));
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.rest.core.projection.ProxyProjectionFactory$TargetClassAwareMethodInterceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.