Skip to content

JavaFF: Java Facade/Factories

Choose a tag to compare

@OyaAIProd OyaAIProd released this 23 Nov 04:48
· 107 commits to master since this release

Is an OpenSource framework that solves the problem of having too many API/Framworks for the same purpose, and how to Control the actual implementation through the classpath instead of the code .

Also it provides a smart mechanism to have different handling by the Class Type in the same project.

Lets take logging as an example, now we have log4j, logback, JDK logging.

At the beginning of the project you decide to go with the logback since it's so famous and faster than log4j and it's bundled with Spring , etc.

After 1 year of the project you got a new requirement for the logging which :

1- All logs should be localized
2- FATAL errors should be sent a specific email

Disaster right !! some people will say we can use slf4j since it's an interface for the logging and we can switch the implantation whenever we want . well yes that's correct

JavaFF provides the same concept for the following :

1- Exceptions
2- Localization
3- JsonHandlers
4- Formatters
5- ReflectionHelpers
6- Utils
7- Security
8- Logging

More details can be found on : https://github.com/rhkiswani/JavaFF