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

io.github.pixee.maven.operator.Command.kt Maven / Gradle / Ivy

package io.github.pixee.maven.operator

/**
 * Represents a Command in a Chain of Responsibility Pattern
 */
interface Command {
    /**
     * Given a context, performs an operation
     *
     * @param pm Context (Project Model) to use
     * @return true if the execution was successful *AND* the chain must end
     */
    fun execute(pm: ProjectModel): Boolean

    /**
     * Post Processing, implementing a Filter Pattern
     */
    fun postProcess(c: ProjectModel): Boolean
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy