8000 GitHub - codeset-projects/portable-util: Useful utilities for an easier Portable life
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

codeset-projects/portable-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

portable-util

This repository contains a number of useful utilities that can help you with your Hazelcast development. We aim to design the utilities in such as way they will fit into any architecture regardless of the technology choice.

####ReflectionClassDefinitionBuilder Reflection based builder which saves you from a lot of typing. It will make you quick - less code to change when your models change. Of course, there is a performance impact because of the reflection, but since class definition building usually takes place during application startup, we hope it's not a problem for you.

######Getting Started It's easy! Start by instantiating the builder:

ReflectionClassDefinitionBuilder builder = new ReflectionClassDefinitionBuilder();

Then pass in a Portable class and back comes a matching class definition:

ClassDefinition classDefinition = builder.build(PortableClass.class);

Finally, you typically add the definition to the serialization config:

Config config = new Config();
config.getSerializationConfig().addClassDefinition(classDefinition);

Limitations: The builder has a few limitations when it comes to nested objects. It only handles nested Portable properties. We will provide an extension mechanism in the near future perhaps.

About

Useful utilities for an easier Portable life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0