| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final EventBus | bus
The event bus this registry belongs to. |
| private static final LoadingCache | flattenHierarchyCache
Global cache of classes to their flattened hierarchy of supertypes. |
| private static final LoadingCache | subscriberMethodsCache
A thread-safe cache that contains the mapping from each class to all methods in that class and
all super-classes, that are annotated with |
| private final ConcurrentMap | subscribers
All registered subscribers, indexed by event type. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private Multimap | findAllSubscribers(Object listener)
Returns all subscribers for the given listener grouped by the type of event they subscribe to. |
| pack-priv static ImmutableSet | flattenHierarchy(Class<?> concreteClass)
Flattens a class's type hierarchy into a set of |
| private static ImmutableList | |
| private static ImmutableList | |
| pack-priv Iterator | getSubscribers(Object event)
Gets an iterator representing an immutable snapshot of all subscribers to the given event at the time this method is called. |
| pack-priv Set | |
| pack-priv void | |
| pack-priv void |
| bus | back to summary |
|---|---|
| private final EventBus bus The event bus this registry belongs to. | |
| flattenHierarchyCache | back to summary |
|---|---|
| private static final LoadingCache<Class<?>, ImmutableSet<Class<?>>> flattenHierarchyCache Global cache of classes to their flattened hierarchy of supertypes. | |
| subscriberMethodsCache | back to summary |
|---|---|
| private static final LoadingCache<Class<?>, ImmutableList<Method>> subscriberMethodsCache A thread-safe cache that contains the mapping from each class to all methods in that class and
all super-classes, that are annotated with | |
| subscribers | back to summary |
|---|---|
| private final ConcurrentMap<Class<?>, CopyOnWriteArraySet<Subscriber>> subscribers All registered subscribers, indexed by event type. The | |
| SubscriberRegistry | back to summary |
|---|---|
| pack-priv SubscriberRegistry(EventBus bus) | |
| findAllSubscribers | back to summary |
|---|---|
| private Multimap Returns all subscribers for the given listener grouped by the type of event they subscribe to. | |
| flattenHierarchy | back to summary |
|---|---|
| pack-priv static ImmutableSet Flattens a class's type hierarchy into a set of
| |
| getAnnotatedMethods | back to summary |
|---|---|
| private static ImmutableList | |
| getAnnotatedMethodsNotCached | back to summary |
|---|---|
| private static ImmutableList | |
| getSubscribers | back to summary |
|---|---|
| pack-priv Iterator Gets an iterator representing an immutable snapshot of all subscribers to the given event at the time this method is called. | |
| getSubscribersForTesting | back to summary |
|---|---|
pack-priv Set
| |
| register | back to summary |
|---|---|
| pack-priv void register(Object listener) Registers all subscriber methods on the given listener object. | |
| unregister | back to summary |
|---|---|
| pack-priv void unregister(Object listener) Unregisters all subscribers on the given listener object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public int |
| name | back to summary |
|---|---|
| private final String name | |
| parameterTypes | back to summary |
|---|---|
| private final List<Class<?>> parameterTypes | |
| MethodIdentifier | back to summary |
|---|---|
| pack-priv MethodIdentifier(Method method) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |