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

com.itemis.maven.plugins.cdi.annotations.MojoProduces Maven / Gradle / Ivy

Go to download

Provides an abstract Mojo that enables CDI-based dependency injection for Maven Plugins.

There is a newer version: 4.0.0
Show newest version
package com.itemis.maven.plugins.cdi.annotations;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * A special CDI producer annotation that must be used if you want to declare fields or methods of the Mojo as
 * producers.
* Note that it is not possible to use {@code @javax.enterprise.inject.Produces} as the producer annotation in * your Mojo since this would activate Maven's own pseudo CDI implementation. All other beans that are created by CDI * are then able to use {@code @Produces} as usual. * * @author Stanley Hillner * @since 1.0.0 */ @Retention(RUNTIME) @Target({ METHOD, FIELD }) public @interface MojoProduces { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy