-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Bio Objects is a library that can be used as a replacement for Java Beans. Bio Objects are based on Maps (Keys-Values) and you will only need to extend BioObject
class and add necessary annotations. Bio Dictionary will be built based on @annotations or XML configuration and will contain all the information required for serialization, XML/JSON parsing etc. Once everything is set up Bio Objects library gives you the following cool features discussed in the next sections.
- Easily customizable by adding new keys to the map, without changing your code.
- Fast and efficient serialization/deserialization
- Binary compression and encryption after serialization
- Easy XML mapping from/to XML file
- Easy JSON mapping from/to JSON file
- Additional operations on Map such as trim(), clone(), format(), fill() (see below for details)
- Immutability support
- Fast Expression Language evaluation (10x faster than SpEL)
You may have concerns about Maps and their memory consumption etc. But in terms of flexibility Maps provide a better experience. Moreover, you can use alternative Map
implementations instead of java.util.HashMap
such as trove4j by configuring Dictionary Builder
Bio Objects are an easy solution where Model objects are changed frequently and developers don't want to change the main code each time. Also, it contains some additional functionalities which are very helpful.