1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt-doc.git synced 2025-04-25 12:07:10 -07:00
This commit is contained in:
Cedric Beust 2015-11-30 18:38:33 -08:00
parent 134e9174bd
commit d5e99b4fb4

View file

@ -271,11 +271,12 @@ class JavaBuildGenerator: IInitContributor {</pre>
</p> </p>
<pre> <pre>
interface IProjectAffinity { interface IProjectAffinity {
/** /**
* @return an integer indicating the affinity of your actor for the given project. The actor that returns * @return an integer indicating the affinity of your actor for the given project. The actor that returns
* the highest affinity gets selected. * the highest affinity gets selected.
*/ */
fun affinity(project: Project, context: KobaltContext) : Int</pre> fun affinity(project: Project, context: KobaltContext) : Int
}</pre>
<p> <p>
For example, the JavaPlugin implements the <code>ICompilerContributor</code> interface and then overrides For example, the JavaPlugin implements the <code>ICompilerContributor</code> interface and then overrides
the <code>affinity()</code> method to make sure it gets run for Java projects but ignored for others: the <code>affinity()</code> method to make sure it gets run for Java projects but ignored for others: