* Streaming approach for DTO serialization
* use Reader/Writer directly in DtoFactory, do not create full JSON texts
* read/write DTOs using direct streaming methods instead of building trees
* configure Gson type adapters instead of generating tree building code
Signed-off-by: Tareq Sharafy <tareq.sha@gmail.com>
* add missing javadoc
Set internal machine address by CLI from CHE_IP.
Add and fix docs in che.env.
Change behavior of default machine server address evaluation
to be similar to the previous state.
Code cleanup.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
Also contains following changes:
- Fixes rethrowing original exception while cascade operation.
- Add manually publishing cascade events in implementation of DAOs instead of using EntityListeners.
- Add flushing of data by EntityManager#flush to produce consistency exception in right place.
- Add CascadeEventLister that is able to throw any of Exception. If listener throws exception then all data changes should be canceled.
- Add base events(PersistEvent, RemoveEvent, UpdateEvent). CascadeEventService throws only right exceptions for each use case. When thrown by listener exception should not be thrown by contract of this operation, then it will be wrapped into ServerException.
--> there was issue with super interfaces implemented directly and through super classes
Change-Id: I27111cd6f97c227b1e1ce8202d4c5cefbcb60d8b
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
Refactors workspace bootstrapping code:
Addition of projects volumes to ws-machines and
applying of agents moved to infrastructure provisioner.
It can be overwritten in any implementation of Che and
will be responsible for providing all infrastructure needed for Che implementation functioning.
Allow to configure environment network driver.
Allow to add Agents from the code instead of special files.
These agents can override agents configured in files if identifiers are equal.
Adds possibility to host agents binaries from CHE master.
Reworks agents in a way when they can be downloaded from CHE master if they are not found on FS.
Adds workspace ID to internal representation of environment to allow to use it for internal purposes of machine bootstrapping.
Renames some properties.
Refactors AgentConfigApplier to encapsulate additional code that was used with this class before.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
CHE-2454: add replacing of double underscores
Add replacing of double underscores in environment variable name
with single underscore in che application variable name.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
It solves two problems:
- we initialize test instances with new injectors instead of
using default child injector mechanism. It resolves issues
with injection of injector in GuiceEntityListenerInjectionManager.
- we add ability to clean resources after tck test finish.
So it allow close entity manager after after tck tests with jpa
and resolve problems with reusing static fields by eclipse link
by EntityManagerFactory when different tests in one module use it