mirror of https://github.com/apache/maven.git
Document that V4 mojo are supposed to be threadsafe (#1675)
This commit is contained in:
parent
6e6c262192
commit
9bfaf54e90
|
@ -20,6 +20,7 @@ package org.apache.maven.api.plugin;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Consumer;
|
import org.apache.maven.api.annotations.Consumer;
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
import org.apache.maven.api.annotations.ThreadSafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface forms the contract required for Mojos to interact with the Maven infrastructure.
|
* This interface forms the contract required for Mojos to interact with the Maven infrastructure.
|
||||||
|
@ -31,6 +32,7 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
@Experimental
|
@Experimental
|
||||||
@FunctionalInterface
|
@FunctionalInterface
|
||||||
@Consumer
|
@Consumer
|
||||||
|
@ThreadSafe
|
||||||
public interface Mojo {
|
public interface Mojo {
|
||||||
/**
|
/**
|
||||||
* Perform whatever build-process behavior this {@code Mojo} implements.
|
* Perform whatever build-process behavior this {@code Mojo} implements.
|
||||||
|
|
Loading…
Reference in New Issue