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

org.ow2.bonita.pvm.internal.cmd.CommandService Maven / Gradle / Ivy

package org.ow2.bonita.pvm.internal.cmd;

import org.ow2.bonita.util.BonitaRuntimeException;
import org.ow2.bonita.util.Command;

/**
 * abstract extensible session facade. Developers can use this directly or
 * extend one of the implementations with custom methods. Developers should be
 * encouraged to use this interface as it will be kept more stable then direct
 * usage of the API (which is still allowed). All the method implementations
 * should be based on commands. Each of the method implementations will have a
 * environment block. Then the command is executed and the environment is passed
 * into the command.
 */
public interface CommandService {

  /**
   * @throws BonitaRuntimeException
   *           if command throws an exception.
   */
   T execute(Command command);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy