Generic Producer CDI

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

GroupId

GroupId

com.github.rmannibucau
ArtifactId

ArtifactId

generic-producer-cdi
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Generic Producer CDI
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Source Code Management

Source Code Management

https://github.com/rmannibucau/generic-producer-cdi

Download generic-producer-cdi

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.rmannibucau/generic-producer-cdi/ -->
<dependency>
    <groupId>com.github.rmannibucau</groupId>
    <artifactId>generic-producer-cdi</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.rmannibucau/generic-producer-cdi/
implementation 'com.github.rmannibucau:generic-producer-cdi:1.0'
// https://jarcasting.com/artifacts/com.github.rmannibucau/generic-producer-cdi/
implementation ("com.github.rmannibucau:generic-producer-cdi:1.0")
'com.github.rmannibucau:generic-producer-cdi:jar:1.0'
<dependency org="com.github.rmannibucau" name="generic-producer-cdi" rev="1.0">
  <artifact name="generic-producer-cdi" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.rmannibucau', module='generic-producer-cdi', version='1.0')
)
libraryDependencies += "com.github.rmannibucau" % "generic-producer-cdi" % "1.0"
[com.github.rmannibucau/generic-producer-cdi "1.0"]

Dependencies

provided (1)

Group / Artifact Type Version
org.apache.geronimo.specs : geronimo-jcdi_1.1_spec jar 1.0

test (5)

Group / Artifact Type Version
junit : junit jar 4.12
org.apache.geronimo.specs : geronimo-interceptor_1.2_spec jar 1.0
org.apache.geronimo.specs : geronimo-atinject_1.0_spec jar 1.0
org.apache.geronimo.specs : geronimo-annotation_1.2_spec jar 1.0
org.apache.openwebbeans : openwebbeans-impl jar 1.5.0

Project Modules

There are no modules declared in this project.

Generic Producer for CDI

Goal

Be able to return Object in a producer

Usage

@ApplicationScoped
public class MyProducer1 {
    @Produces
    @MyProducerQualifier1
    public Object create(final InjectionPoint ip) {
        // your logic like myFactory.find(ip.getAnnotated().getAnnotation(MyFactory.class).value());
    }
}
@GenericQualifier
@Qualifier
@Target({ METHOD, FIELD })
@Retention(RUNTIME)
public @interface MyProducerQualifier1 {}

Versions

Version
1.0