mydailyjava.blogspot.com
My daily Java: Make agents, not frameworks
http://mydailyjava.blogspot.com/2015/01/make-agents-not-frameworks.html
This blog is concerned with the Java platform, its languages and application frameworks. Freitag, 9. Januar 2015. Make agents, not frameworks. Ever since their introduction, Java annotations. One problem that becomes quite obvious when implementing an annotation-based API is that annotations are not being handled by an executing Java runtime. As a consequence, it is not possible to assign a specific meaning to a given user annotation. For example, consider that we wanted to define a. Class LoggingService...
javax0.wordpress.com
Java Deep | Pure Java, what else | Page 2
https://javax0.wordpress.com/page/2
Pure Java, what else. Implementing an annotation interface. Posted by Peter Verhas. On March 16, 2016. Using annotation is every day task for a Java developer. If nothing else simple. When we have an annotation. Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface AnnoWithDefMethod { String value() default default value string; }. Then a class annotated with this annotation. AnnoWithDefMethod(my default value) public class AnnotatedClass . Then what do we get into the variable.
vincentbauer.com
Website Archive — Vincent Bauer - Vincent Bauer
http://vincentbauer.com/category/coding
University of Applied Arts. ViennaOpen 2015 Website is online. For the OpenSource project of Rafael Winterhalter. Byte Buddy is a code generation library for creating Java classes during the runtime of a Java application and without the help of a compiler. Other than the code generation utilities that ship with the Java Class Library, Byte Buddy allows the creation of arbitrary classes and is not limited to implementing interfaces for the creation of runtime proxies. Website, CI and Flash Intro for VIKI.
wenfeng-gao.github.io
Mock with Mockito · je pense, donc je suis
https://wenfeng-gao.github.io/2016/05/13/mock-with-mockito.html
Unit test takes an important role in software development, which ensures the code quality. Mockito. Is an open-source mocking framework for unit tests in Java. After trying, I found it very nice and easy to use, so this blog aims to introducing Mockito to you. Mock means using a. Thing instead of the original one to help us test, but why do we need that? Martin Fowler’s article Mocks Aren’t Stubs. Makes a lot sense explainning why. The classic test case uses a state verification style. So the idea is to.
mydailyjava.blogspot.com
My daily Java: Januar 2015
http://mydailyjava.blogspot.com/2015_01_01_archive.html
This blog is concerned with the Java platform, its languages and application frameworks. Freitag, 9. Januar 2015. Make agents, not frameworks. Ever since their introduction, Java annotations. One problem that becomes quite obvious when implementing an annotation-based API is that annotations are not being handled by an executing Java runtime. As a consequence, it is not possible to assign a specific meaning to a given user annotation. For example, consider that we wanted to define a. Class LoggingService...
blog.bramp.net
Unrolling loops at runtime with Byte Buddy
https://blog.bramp.net/post/2015/09/09/unrolling-loops-at-runtime-with-byte-buddy
Unrolling loops at runtime with Byte Buddy. I encountered a problem that I felt I could optimise. The. Copies objects into off-heap memory, instead of what a normal. Would do, which is to store references to the object in an array on the heap. For example an. Holds instances of FourLongs. Whose fields consume a total of 32 bytes (4 8 bytes) of memory. By design, when. Are called, the. Copies these 32 bytes into or out of a contiguous segment of memory. To achieve the copying,. Note, we use. In this case,...
2016.geekout.ee
Rafael Winterhalter
https://2016.geekout.ee/speakers/rafael-winterhalter
Rafael works as a software consultant in Oslo, Norway. He is a proponent of static typing and a JVM enthusiast with particular interest in code instrumentation, concurrency and functional programming. Rafael blogs about software development, regularly presents at conferences and was pronounced a JavaOne Rock Star. When coding outside of his work place, he contributes to a wide range of open source projects and often works on Byte Buddy.