Package org.springframework.hateoas.mvc

Examples of org.springframework.hateoas.mvc.ControllerLinkBuilderFactory$RequestParamParameterAccessor


   */
  public PagedResourcesAssemblerArgumentResolver(HateoasPageableHandlerMethodArgumentResolver resolver,
      MethodLinkBuilderFactory<?> linkBuilderFactory) {

    this.resolver = resolver;
    this.linkBuilderFactory = linkBuilderFactory == null ? new ControllerLinkBuilderFactory() : linkBuilderFactory;
  }
View Full Code Here


    ApplicationContext context = new GenericApplicationContext(factory);

    ControllerEntityLinksFactoryBean builder = new ControllerEntityLinksFactoryBean();
    builder.setAnnotation(Controller.class);
    builder.setLinkBuilderFactory(new ControllerLinkBuilderFactory());
    builder.setApplicationContext(context);
    builder.afterPropertiesSet();

    ControllerEntityLinks entityLinks = builder.getObject();
    assertThat(entityLinks.supports(Person.class), is(true));
View Full Code Here

TOP

Related Classes of org.springframework.hateoas.mvc.ControllerLinkBuilderFactory$RequestParamParameterAccessor

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.