Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Werner Diwischek edited this page Sep 11, 2020 · 24 revisions

Elastic Objects

... while you're programming, you are learning. It's often the case that it can take a year of programming on a project before you understand what the best design approach should have been ...

-- Martin Fowler

Computer communication today means some kind of typed method invocation and fixed method functionality bound to an url.

The concept of Elastic Objects is different: It offers a generic object with typed parts send over one endpoint. Functionality is offered by beans with an execution method which can be arbitrary composed. They called Calls.

Some working editable examples of diffent you can find on ElasticObjects.org which itself is build by one generic spring boot endpoint and EO.

A simple example where you can edit it's structure:

<form action="http://www.elasticobjects.org/eo-form" method="post">
     <textarea name="eo">{
  "(Double)source":1,
  "(SinusValueCall)target": {
    "sourcePath": "/source"
  }
}</textarea>
  <input type="submit" value="post"/>
</form>

Here you can edit

  • the value of source
  • the fieldName of target
  • the value of sourcePath and the corresponding fieldName

The core library is rather small but allows a much rich message communication even within existing solutions.

  • any combination of functionality allowed in a message
  • any arbitrary information could placed in a message
  • minimal coupling to an application server
  • No annotation magic, pure java

Links


fluentcodes - elastic objects - mvn repository



                  

Clone this wiki locally