tofigurator


Java Configuration Library. Simple, Declarative, Reliable, Flexible and Compact.

Description

The target of this project is to build easy, reliable, flexible and universal Java Configuration Tool. This library is very good and also very compact implementation of IoC(Inversion of Control) and DI(Dependency Injection) programming concepts. Jar is very small and is suitable even for Java Applets. Works well and for Java Clients and for Java Server Applications. Can manage very small and very large number of configuration parameters. Can inject configuration values into any reachable Java Class and/or Java Object.

Requirements

  1. This is a library of several Java Classes packaged into jar
  2. This tool allows setting new values to Java class and instance properties
  3. This tool fits to any Java project and is generic
  4. It is simple and intuitively understandable
  5. It is XML based declarative programming style
  6. It is easily integrating with any Java project with minimum efforts and maximum use
  7. It can handle hundreds of thousands configuration parameters
  8. It supports several levels of Hierarchy. As Package, Class, Instances, Parameters, Arrays and Files Hierarchies
  9. Configuration structure could be not matching the code structure
  10. Soft code reflection. Meaning use Java reflection capabilities in soft manner avoiding performance and resources management problems
  11. Type freedom. Configuration is not dependent on code parameters types.
  12. Configuration could be even more complex and more flexible than java code(Type freedom concept is about developing configuration and code separately and then easy integrate)
  13. Interpretation is taking over interfacing
  14. Tofigurator is built on Elementry Principals

Contents

tofigurator Features

  • tofigurator package is made to configure Java Classes and Instances of Java Classes

  • Configuration is defined in XML files

  • Configuration files could import other configuration files. That creates a hierarchy of files. Recursive cross imports problem is resolved by allowing one time import for each file

  • tofigurator synchronizes it's inner configuration storage with Java System Properties. That allows accessing to System Parameters through tofigurator tools.

  • tofigurator is capable of exporting of all configuration parameters into XML files in flat and hierarchical manner.

  • tofigurator is capable to set values to all variables of all Java primitive types with any level of access protection. Meaning even private inner members of object are configurable by tofigurator package

  • tofigurator is capable to set values to String, Date and ParameterizedString members. Other special interpretation types could be easily added

  • tofigurator is self-configurable and for example the syntax of configuration XML files could be changed through configuration without changing the code

  • tofigurator is implemented as regular java class CConfigurator. Some additional functionalities are implemented in static wrapper SConfigurator

  • Configuration and Class structure matching is not mandatory. tofigurator is complaint to Type Freedom programming concept

  • tofigurator doesn't change value of class member if corresponding configuration parameter is not specified. So default values yet could be defined in Java classes

  • Configuration could be silent or not. Depends on configuration parameter. Default for tofigurator is silent behavior. If silent parameter is set to false tofigurator will report every conflict and parameter missing. That could prevent configuration problems and complications while code debugging

For more information click on Contents