Technically Feasible

Technically Feasible

Confessions of an Enterprise Software Developer

πŸ”—

Java SPI - a simple hello world service

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.

jens.dev

πŸ”—

Modularizing with Micronaut Framework

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.

kreuzwerker.de

πŸ’­

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.

mstdn.social

πŸ’­

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.

mstdn.social



πŸ’­

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.

mstdn.social

πŸ’­

Are there other solutions I should be considering which would be better suited to the task? I've not implemented anything with OSGi or SPI directly so this area is quite new to me. SPI seems like it may work technically.

mstdn.social

πŸ’­

Would this make sense from an implementation standpoint? I'm not currently targeting native image; it will be a deployed service running upon an installed JVM. SPI seems much more lightweight than other solutions like OSGi, which seem like a sledgehammer with far-reaching design implications in comparison.

mstdn.social

πŸ’­

I'm in the process of building an #activitypub implementation using #java and #micronaut.

I'm considering options to make the platform "pluggable". The plan is to use something like SPI to load plugins from JAR files, allowing features to be added to customize the platform for individual needs.

Off the top of my head I'm thinking things like custom APIs or storage back-ends to do things which won't be included a (completely theoretical) core distribution.

mstdn.social