/atbash-utils

Utility classes for Java SE, CDI, CDI-test, ...

Primary LanguageJavaApache License 2.0Apache-2.0

License Build Status

utils-se : Maven Central
utils-cdi : Maven Central
utils-jsf : Maven Central

NOTE : Repository is archived and split up into the following repositories https://github.com/atbashEE/atbash-utils-se, https://github.com/atbashEE/atbash-utils-cdi, and https://github.com/atbashEE/atbash-utils-jsf

atbash-utils

Utility classes for Java SE, CDI, CDI-test, ...

  • Java SE 8 based!
  • Automatic module name defined for Java 9+
  • Runs on Java 8 and 11 Classpath.

For Java 7 support, you can use version 0.9.3.2.

Release of version 1.2.0 contains only utils SE module. The code repository will be split up soon since utils SE change rate is much higher than the CDI and JSF one and no need to release them all the time without any real changes.

utils SE

  • String Utils
  • Collection Utils
  • Top level RuntimeException and Exception for unexpected conditions
  • Proxy Utils
  • Class Utils
  • HEX encoding
  • Reading Version from MANIFEST.MF
  • Check if running within CDI container.
  • Resource API

utils CDI

Requires CDI 1.1

  • Programmatic retrieval of CDI instances.
  • Producer for SLF4J logger.
  • Manual retrieval of generic types CDI beans generated by Producer methods.
  • Fake Bean manager for testing (no need for full CDI container)

There is also a version for CDI 3.0 (Jakarta EE 9 namespace), see here.

utils JSF

Requires JSF 2.x

  • Some general useful utility methods related to JSF.
  • Fake FacesContext for unit testing

There is also a version for JSF 3.0 (Jakarta EE 9 namespace), see here.