Date post: | 22-Nov-2014 |
Category: |
Technology |
Upload: | oracle-coherence |
View: | 616 times |
Download: | 3 times |
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.1
POF Configuration GeneratorHarvey RajaPrincipal Member Technical StaffOracle Coherence
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3 3 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions.The development, release, and timing of any features or functionality described for Oracle’s products remain at the sole discretion of Oracle.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4
Agenda
How we got here?
What’s the problem?
The red pill…
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5
POF Through The Ages…
Traditionally for an object to be serialized using POF two mechanisms exist:
– Object implements PortableObject
– A PofSerializer is registered for the Class type of the Object
In Coherence 3.7.1 we introduce the @Portable and @PortableProperty annotations
The intention was to ease the developer experience…
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6
Examples
Teleporting the atom…
Portable ObjectPofSerializerPOF Annotations
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7
POF Configuration Generator
Generates POF configuration file based on classes
Predictable type-id generation
Generational– Accepts previous POF configuration file
Operates against a GAR and supported by maven GAR plugin
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8
POF Configuration Generator
Can be invoked command line or consumable API
Classes are not loaded by the JVM
No dependency on third party disassembler
Potential integration as a part of application startup
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11