All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.realityforge.replicant.client.ChangeMapper Maven / Gradle / Ivy

There is a newer version: 5.98-arez-b23
Show newest version
package org.realityforge.replicant.client;

import javax.annotation.Nonnull;

/**
 * The ChangeMapper is responsible for applying changes to the world.
 *
 * 

The mapper will be invoked for each change message and is responsible for;

* *
    *
  • creating the entity if it does not already exist
  • *
  • registering or de-registering the entity in the EntityRepository
  • *
  • applying the state changes to the entity
  • *
* *

As the ChangeMapper is very specific to the domain model that is being replicated, the ChangeMapper * is typically generated from a description via a tool such as Domgen.

*/ public interface ChangeMapper { /** * Apply a single change to the world. * * @param change the Change. * @return the entity that was created, updated or removed. */ @Nonnull Object applyChange( @Nonnull Change change ); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy