Kermeta 2 is able to reuse the java code generated from an ecore model. Thus, if the generated code is customized through the GENERATED NOT annotations, this code will natively be used by kermeta. This provides a nice and elegant way to encapsualte java code in a model.
TODO illustrate that on a small sample.
This tutorial will detail the following points:
create an EMF project with an ecore model that proposes some operations
generate the java code from the ecore model
add some custom code in the model operations
use "generated NOT" annotation to make sure the code cannot be overidden when regenerating the model
create a jar from this java project
the current recommanded packaging method is to use maven and tycho
create a kermeta project
configure the project to use this java project and its eventual depdendencies
call the operations in the model
compile and run the kermeta application