
com.google.common.eventbus.SubscriberRegistry.class Maven / Gradle / Ivy
???? 4?
-com/google/common/eventbus/SubscriberRegistry getAnnotatedMethodsNotCached <(Ljava/lang/Class;)Lcom/google/common/collect/ImmutableList;
java/lang/Object ()V
com/google/common/collect/Maps newConcurrentMap &()Ljava/util/concurrent/ConcurrentMap; subscribers $Ljava/util/concurrent/ConcurrentMap;
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; #com/google/common/eventbus/EventBus ! " bus %Lcom/google/common/eventbus/EventBus;
$ % & findAllSubscribers 8(Ljava/lang/Object;)Lcom/google/common/collect/Multimap; ( ) * + , "com/google/common/collect/Multimap asMap ()Ljava/util/Map; . / 0 1 2
java/util/Map entrySet ()Ljava/util/Set; 4 5 6 7 8
java/util/Set iterator ()Ljava/util/Iterator; : ; < = > java/util/Iterator hasNext ()Z : @ A B next ()Ljava/lang/Object; D java/util/Map$Entry C F G B getKey I java/lang/Class C K L B getValue N java/util/Collection P Q R S "java/util/concurrent/ConcurrentMap get U (java/util/concurrent/CopyOnWriteArraySet
T P X Y Z putIfAbsent 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
\ ] ^ _ Z "com/google/common/base/MoreObjects firstNonNull
T a b c addAll (Ljava/util/Collection;)Z
T e f c removeAll h "java/lang/IllegalArgumentException j java/lang/StringBuilder
i m 5missing event subscriber for an annotated method. Is
i o p q append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
i s p t -(Ljava/lang/Object;)Ljava/lang/StringBuilder; v registered?
i x y z toString ()Ljava/lang/String;
g | } (Ljava/lang/String;)V java/util/AbstractCollection
? ? ? ? ? &com/google/common/collect/ImmutableSet of *()Lcom/google/common/collect/ImmutableSet;
? ? ? getClass ()Ljava/lang/Class;
? ? ? flattenHierarchy ;(Ljava/lang/Class;)Lcom/google/common/collect/ImmutableSet;
? ? ? ? size ()I
? ? ? ? ? com/google/common/collect/Lists newArrayListWithCapacity (I)Ljava/util/ArrayList;
? ? 7 ? 2()Lcom/google/common/collect/UnmodifiableIterator;
T 5 ? ? ? ? ? java/util/List add (Ljava/lang/Object;)Z ? 5
? ? ? ? ? #com/google/common/collect/Iterators concat *(Ljava/util/Iterator;)Ljava/util/Iterator;
? ? ? ? ? &com/google/common/collect/HashMultimap create *()Lcom/google/common/collect/HashMultimap;
? ? getAnnotatedMethods
? ? ? 'com/google/common/collect/ImmutableList ? java/lang/reflect/Method
? ? ? ? getParameterTypes ()[Ljava/lang/Class;
? ? ? ? ? %com/google/common/eventbus/Subscriber z(Lcom/google/common/eventbus/EventBus;Ljava/lang/Object;Ljava/lang/reflect/Method;)Lcom/google/common/eventbus/Subscriber; ( ? ? ? put '(Ljava/lang/Object;Ljava/lang/Object;)Z ? ? ? subscriberMethodsCache &Lcom/google/common/cache/LoadingCache; ? ? ? ? $com/google/common/cache/LoadingCache getUnchecked ? =com/google/common/util/concurrent/UncheckedExecutionException
? ? ? ? getCause ()Ljava/lang/Throwable;
? ? ? ? ? !com/google/common/base/Throwables throwIfUnchecked (Ljava/lang/Throwable;)V
? ? ? ? ? #com/google/common/reflect/TypeToken 8(Ljava/lang/Class;)Lcom/google/common/reflect/TypeToken;
? ? ? ? getTypes /()Lcom/google/common/reflect/TypeToken$TypeSet;
? ? ? ? 2 +com/google/common/reflect/TypeToken$TypeSet rawTypes
? ? ?
newHashMap ()Ljava/util/HashMap;
H ? ? ? getDeclaredMethods ()[Ljava/lang/reflect/Method; ? $com/google/common/eventbus/Subscribe
? ? ? ? isAnnotationPresent (Ljava/lang/Class;)Z
? ? ? > isSynthetic ? lMethod %s has @Subscribe annotation but has %s parameters. Subscriber methods must have exactly 1 parameter.
? ? ?
checkArgument )(ZLjava/lang/String;Ljava/lang/Object;I)V
H ? > isPrimitive {@Subscribe method %s's parameter is %s. Subscriber methods cannot accept primitives. Consider changing the parameter to %s.
H z getName
'com/google/common/primitives/Primitives wrap $(Ljava/lang/Class;)Ljava/lang/Class;
H
z
getSimpleName
? L(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V >com/google/common/eventbus/SubscriberRegistry$MethodIdentifier
(Ljava/lang/reflect/Method;)V . ? containsKey . ? Z . values ()Ljava/util/Collection;
?!"# copyOf A(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList; %&