Package com.jayway.jaxrs.hateoas.support

Examples of com.jayway.jaxrs.hateoas.support.JavassistHateoasLinkInjector


  public HateoasApplication() {
    this(HateoasVerbosity.MAXIMUM);
  }

  public HateoasApplication(HateoasVerbosity verbosity) {
    this(new JavassistHateoasLinkInjector(), new DefaultCollectionWrapperStrategy(), verbosity);
  }
View Full Code Here


        this(HateoasVerbosity.MAXIMUM, packages);
    }

    public JerseyHateoasApplication(HateoasVerbosity verbosity,
                                    String... packages) {
        this(new JavassistHateoasLinkInjector(), new DefaultCollectionWrapperStrategy(), verbosity, packages);
    }
View Full Code Here

     * @param verbosity the verbosity level to use in the application
     * @param props properties to be passed to {@link PackagesResourceConfig} constructor
     */
    public JerseyHateoasApplication(HateoasVerbosity verbosity,
                                    Map<String, Object> props) {
        this(new JavassistHateoasLinkInjector(), new DefaultCollectionWrapperStrategy(), verbosity, props);
    }
View Full Code Here

                return (HateoasLinkInjector<Object>) impl.newInstance();
            } catch (Exception e) {
                throw new RuntimeException("Could not create instance of HateoasLinkInjector: " + implClass, e);
            }
        } else {
            return new JavassistHateoasLinkInjector();
        }
    }
View Full Code Here

        HateoasLinkInjector<Object> linkInjector = null;

        Object linkInjectorProperty = rc.getProperty(PROPERTY_LINK_INJECTOR);
        if (linkInjectorProperty == null) {
            logger.info("Using default LinkInjcetor");
            linkInjector = new JavassistHateoasLinkInjector();
        } else {
            logger.info("Using {} as LinkInjector", linkInjectorProperty);
            try {
                linkInjector = (HateoasLinkInjector<Object>)
                        Class.forName((String) linkInjectorProperty).newInstance();
View Full Code Here

TOP

Related Classes of com.jayway.jaxrs.hateoas.support.JavassistHateoasLinkInjector

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.