MgntUtils

Mgnt Utilities

MgntUtils

Maven Central License Javadoc GitHub release Tests GitHub stars
Scarf: Commercial Users Scarf: Downloads

MgntUtils is an open-source Java library that provides:

The Javadoc API is available here: MgntUtils Javadoc API

Key Features and Utilities

Self-Populating Factory Micro-Framework

All other utilities in this library solve individual, well-defined problems. What follows is different in kind: it is a fundamental architectural pattern and by far the most significant part of this library. It is packaged as a lightweight micro-framework — two classes — that provides the infrastructure for a self-registering factory pattern. The library ships this infrastructure along with a complete, runnable example. The broader architectural pattern it enables — resolving an N × M extensibility problem across multiple data types and processing stages without modifying existing code — is not part of the library itself, but is documented in detail in Infrastructure for Extensible Multi-Stage Workflows Across Multiple Data Types and demonstrated in a separate companion project. This article should be considered required reading alongside this section.

The framework implementation is located in package com.mgnt.lifecycle.management. It provides infrastructure for factories whose components automatically register themselves during initialization — similar in spirit to an Inversion of Control container, but without the framework overhead and with no external dependencies. Implementation classes are factory-aware: this eliminates manual factory-population logic and centralized registration maps entirely — as long as a concrete implementation is instantiated, it becomes available through the factory.

The package-level Javadoc contains a detailed explanation of the design and a complete, runnable example included with the library source.

See the Javadoc for details:
Self-Populating Factory package documentation

Extended Library Documentation

This README and the library Javadoc provide a solid overview of what MgntUtils is and how to start using it. In addition, there is a series of articles about the library and its features that go deeper into each major utility and the Self-Populating Factory pattern. These articles should be treated as integral parts of the library’s documentation and are especially useful for understanding architectural uses and advanced setups.

You can find all of these articles in the Featured section of my LinkedIn profile:
https://www.linkedin.com/in/michael-gantman-9661521/details/featured/

Series-Overview Articles

Feature-Specific Deep Dives

Architectural Design Pattern

Installing MgntUtils

MgntUtils is available on Maven Central:

<dependency>
    <groupId>com.github.michaelgantman</groupId>
    <artifactId>MgntUtils</artifactId>
    <version>1.7.0.9</version>
</dependency>

If you also want Javadoc and sources for your IDE:

<dependency>
    <groupId>com.github.michaelgantman</groupId>
    <artifactId>MgntUtils</artifactId>
    <version>1.7.0.9</version>
    <classifier>javadoc</classifier>
</dependency>
<dependency>
    <groupId>com.github.michaelgantman</groupId>
    <artifactId>MgntUtils</artifactId>
    <version>1.7.0.9</version>
    <classifier>sources</classifier>
</dependency>

If you have any feedback, feel free to drop me a note at michael_gantman@yahoo.com