maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tibor Digana <tibordig...@apache.org>
Subject Re: move maven core to java 7?
Date Sun, 08 Mar 2015 15:07:07 GMT
As you said, the SPI did not work well in multimodule project.
You tested SPI in Maven, so you know better than me :)

With JSR-269 with can use javax.inject:javax-inject annotations and we the
user can use non-default constructor. Imaging this in user, our processor is
sensitive only in SurefireComponent-s:
(the first experimental version may sleep well without @Inject etc.)

@SurefireComponent
public class CustomRunOrder implement RunOrderCalculator {

CustomRunOrder(@Inject MavenProject mp) {...}

...
}


Our API:

@Qualifier
public @interface SurefireComponent

Later we can introduce Scopes:

@Scope
@Retention(RUNTIME)
public @interface ForkedScoped

@Scope
@Retention(RUNTIME)
public @interface InProcessScoped



--
View this message in context: http://maven.40175.n5.nabble.com/move-maven-core-to-java-7-tp5827988p5828481.html
Sent from the Maven Developers mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message