Class WildcardKey

java.lang.Object
org.eclipse.sisu.space.WildcardKey

final class WildcardKey extends Object
Binding 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 by casting the pseudo-qualifier to Provider and calling get().

  • Field Details

    • OBJECT_TYPE_LITERAL

      private static final com.google.inject.TypeLiteral<Object> OBJECT_TYPE_LITERAL
  • Constructor Details

    • WildcardKey

      private WildcardKey()
  • Method Details

    • get

      public static com.google.inject.Key<Object> get(Class<?> type, Annotation qualifier)
      Returns:
      Wildcard key for the given implementation type and qualifier