public final class WildcardKey extends com.google.inject.Key<Object>
Key
for implementations that act as "wild-cards", meaning they match against any assignable type.
Since the wild-card type is Object
and the associated qualifier may not be unique between implementations,
the qualifier is saved and replaced with a unique (per-implementation) pseudo-qualifier. The original qualifier is
available from getQualifier()
.
Constructor and Description |
---|
WildcardKey(Class<?> type,
Annotation qualifier) |
Modifier and Type | Method and Description |
---|---|
Annotation |
getQualifier() |
public WildcardKey(Class<?> type, Annotation qualifier)
public Annotation getQualifier()
Copyright © 2010-2019 Sonatype, Inc.. All Rights Reserved.