Skip to content
radukingPublic

About

A library that exposes general Java utility and reflection methods and a package for converting a source object to a destination object.

Resources

Contributing

Stars

7 stars

Watchers

1 watching

Forks

Repository files navigation

MorphiX

A library that exposes general Java utility and reflection methods and a package for converting a source object to a destination object.

Maven Central GitHub Release License Java PRs

Status

branch: master Build (master) branch: develop Build (develop)

Languages and Tools

java maven

License

Apache License, Version 2.0

Why MorphiX?

Reflection

  • Provides utility classes / objects / methods for easier development with Java reflection.

Utility

  • It has no outside dependencies, built entirely on standard Java 21+
  • Provides utility classes / objects / methods for easier development with Java.
  • Fast retry framework for retrying any code block with custom retry policies, exception handling and more.
  • Provides a simple concurrent LRU cache implementation.
  • Resource management, ownership and leak detection utilities for easier management of resources and their lifecycle.
  • Thread management utilities for easier management of threads and their lifecycle.

Conversions

  • Provides an API for converting a source java object to a destination Java object.
  • It's simple, fast and has no byte-code manipulation
  • No annotation processing needed
  • Uses reflection (fields + getters/setters)
  • Iterates through destination object fields
  • Ignores access modifiers
  • Uses conventions for converting

Releases

Current release 1.1.1

Documentation

Examples

See examples folder in unit tests for examples.

Getting Started

You will need at least Java 21 installed. For the latest development release, you need to get the develop branch and build it yourself:

git clone git@github.com:raduking/morphix.git
cd morphix
mvn clean install

Maven: add this dependency to your pom.xml

<dependency>
    <groupId>io.github.raduking</groupId>
    <artifactId>morphix-all</artifactId>
    <version>1.1.1</version>
</dependency>

About

A library that exposes general Java utility and reflection methods and a package for converting a source object to a destination object.

Resources

Contributing

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages