To load calsses in runtime java uses ClassLoader mechanism which is based on next core principles: delegation - by default uses parent-first delegation, - child ClassLoader will be used if parent is not able to find or load class.
Null dereferencing is a common type of programming error in Java. On Android, NullPointerException (NPE) errors are the largest cause of app crashes on Google Play.
Schema-org-java is a library for creating schema.org entities. The entities can be easily generated with the maven plugin, programmatically, or in command line.
I recently needed a simple example of an SPI implementation I could send around as copy and paste template. After some looking around I found some tutorials, but most of them were rather heavy in the implementation and are thereby loosing the point of being a simple extension system within the JDK.
In this blog post, I’m going to explain how you can make use of the Micronaut framework to organize your project code in such a way that you can externalize and modularize some of your @Beans. These beans can be used as “common” and can be shared between several projects.
This means that my content, or at least part of it, is still available if I need to migrate instances again.
I need to further refine the process, as media and emoji are hot linked. This was not my preference but I could not get my head around async await at 2am.
Last night I switched the method through which I import my mastodon toots from here into my #11ty blog.
It now pulls changes when a ci build is triggered using an external script, rather than during the render/build phase. It does this by generating markdown files with yaml frontmatter. The process creates a new commit which in turn triggers a full build of the site on the main branch.
In this article, we are going to talk about Java’s Service Provider Interface (SPI). We will have a short overview of what the SPI is and describe some cases where we can use it. Then we will give an implementation of an SPI for a practical use case.
It's early days, too early to be thinking this far forward. I can't get the idea out of my head, so i'm putting it out there for comment. With any luck this will help me to move onto the basics, such as actually implementing activitypub.