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

org.jbpm.command.AbstractBaseCommand Maven / Gradle / Ivy

The newest version!
package org.jbpm.command;

import org.jbpm.util.ClassUtil;

/**
 * Base class for all internal commands. Implements some convenience methods for {@link Command}s
 * and generic toString method.
 * 
 * @author [email protected]
 */
public abstract class AbstractBaseCommand implements Command {

  private static final long serialVersionUID = 1L;

  public String toString() {
    String className = ClassUtil.getSimpleName(getClass());
    String additionalInfo = getAdditionalToStringInformation();
    return additionalInfo != null ? className + '[' + additionalInfo + ']' : className;
  }

  protected String getAdditionalToStringInformation() {
    return null;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy