pl.setblack.airomem.core.ContextCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of airomem-core Show documentation
Show all versions of airomem-core Show documentation
Prevayler based persistence engine
The newest version!
/* Copyright (c) Jarek Ratajski, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package pl.setblack.airomem.core;
import java.io.Serializable;
/**
* Command interface for all operations that mutate system.
*
* Implement command (classic class or lambda) and pass to persistence
* Controller.
*
* @author jarekr
*/
@FunctionalInterface
public interface ContextCommand extends Serializable {
/**
* @param system reference to mutable system
* @param context context info (such as date)
*/
R execute(T system, PrevalanceContext context);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy