io.quarkiverse.ironjacamar.ResourceAdapterKind Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-ironjacamar Show documentation
Show all versions of quarkus-ironjacamar Show documentation
Run Jakarta Connector (JCA) adapters in Quarkus
package io.quarkiverse.ironjacamar;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import jakarta.enterprise.util.AnnotationLiteral;
import jakarta.inject.Qualifier;
/**
* A Qualifier for resource adapters. This is used to identify the resource adapter to be used.
*/
@Qualifier
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface ResourceAdapterKind {
/**
* The kind of resource adapter.
*/
String value();
// Literal for this CDI qualifier
class Literal extends AnnotationLiteral implements ResourceAdapterKind {
private final String value;
public static Literal of(String value) {
return new Literal(value);
}
public Literal(String value) {
this.value = value;
}
@Override
public String value() {
return value;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy