T - The Typepublic class ProducesMediaTypeQualifier<T>
extends java.lang.Object
implements io.micronaut.context.Qualifier<T>
Bean Qualifier that qualifies based on the value of the media type
defined in the Produces annotation.| Constructor and Description |
|---|
ProducesMediaTypeQualifier(io.micronaut.http.MediaType contentType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
<BT extends io.micronaut.inject.BeanType<T>> |
reduce(java.lang.Class<T> beanType,
java.util.stream.Stream<BT> candidates) |
java.lang.String |
toString() |
public ProducesMediaTypeQualifier(io.micronaut.http.MediaType contentType)
contentType - The content type as MediaTypepublic <BT extends io.micronaut.inject.BeanType<T>> java.util.stream.Stream<BT> reduce(java.lang.Class<T> beanType, java.util.stream.Stream<BT> candidates)
reduce in interface io.micronaut.context.Qualifier<T>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object