Giter Club home page Giter Club logo

dynamic-proxies-samples's Introduction

Dynamic Proxies Samples

This repository is a companion to the book Dynamic Proxies in Java by Dr Heinz M. Kabutz.

It contains several modules.

  1. The core module is a library of dynamic proxy helper classes. The Proxies class is a façade that makes it easy to use the common configurations. The classes in this library are described in the book and used in the other modules. The core is published in the Maven Central Repository and you may use it in your projects under the Apache License, Version 2.0.

  2. The samples module is a collection of the sample code used in the book.

  3. The benchmarks module is a set of benchmarks using the Java Microbenchmark Harness (JMH) to test the performance of dynamic proxies. The results of the benchmarks are summarized in the book.

Benchmarks

To exercise the benchmarks, run the following in a terminal, or use your IDE to do the equivalent:

mvn verify -P run-benchmarks

Java Platform Module System (JPMS)

The core and samples modules use JPMS so that we can show the effects of JPMS modules on dynamic proxies, and avoid the illegal access warnings from the JRE when running the code.

For the benchmarks module, however, there is a package clash in JMH v1.21 which blocks JPMS from loading the components of JMH as automatic modules. In particular, the package org.openjdk.jmh.generators.core in jmh-core clashes with the package org.openjdk.jmh.generators in jmh-generator-annprocess.

dynamic-proxies-samples's People

Contributors

kabutz avatar sbordet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.