Skip navigation links
A C D E F G H M O P R S T U V 

A

AsyncEventHandler - Class in org.simple.eventbus.handler
事件的异步处理,将事件的处理函数执行在子线程中
AsyncEventHandler() - Constructor for class org.simple.eventbus.handler.AsyncEventHandler
 

C

clear() - Method in class org.simple.eventbus.EventBus
clear the events and subcribers map

D

DEFAULT_TAG - Static variable in class org.simple.eventbus.EventType
默认的tag
DefaultEventHandler - Class in org.simple.eventbus.handler
事件在哪个线程post,事件的接收就在哪个线程
DefaultEventHandler() - Constructor for class org.simple.eventbus.handler.DefaultEventHandler
 
DefaultMatchPolicy - Class in org.simple.eventbus.matchpolicy
 
DefaultMatchPolicy() - Constructor for class org.simple.eventbus.matchpolicy.DefaultMatchPolicy
 

E

equals(Object) - Method in class org.simple.eventbus.EventType
 
equals(Object) - Method in class org.simple.eventbus.Subscription
 
event - Variable in class org.simple.eventbus.EventType
 
EventBus - Class in org.simple.eventbus
EventBus是AndroidEventBus框架的核心类,也是用户的入口类.它存储了用户注册的订阅者信息和方法, 事件类型和该事件对应的tag标识一个种类的事件EventType,每一种事件对应有一个或者多个订阅者Subscription ,订阅者中的订阅函数通过Subscriber注解来标识tag和线程模型,这样使得用户体检较为友好,代码也更加整洁.
EventBus(String) - Constructor for class org.simple.eventbus.EventBus
constructor with desc
EventHandler - Interface in org.simple.eventbus.handler
事件处理接口
EventType - Class in org.simple.eventbus
该类是描述一个函数唯一性的对象,参数类型、tag两个条件保证了对象的唯一性.通过该类的对象来查找注册了相应类型和tag的所有订阅者Subscription, 并且在接到消息时调用所有订阅者对应的函数.
EventType(Class<?>) - Constructor for class org.simple.eventbus.EventType
 
EventType(Class<?>, String) - Constructor for class org.simple.eventbus.EventType
 
eventType - Variable in class org.simple.eventbus.Subscription
事件类型

F

findMatchEventTypes(EventType, Object) - Method in class org.simple.eventbus.matchpolicy.DefaultMatchPolicy
 
findMatchEventTypes(EventType, Object) - Method in interface org.simple.eventbus.matchpolicy.MatchPolicy
 
findMatchEventTypes(EventType, Object) - Method in class org.simple.eventbus.matchpolicy.StrictMatchPolicy
 
findSubcribeMethods(Object) - Method in class org.simple.eventbus.SubsciberMethodHunter
查找订阅对象中的订阅方法,并且构建为Subscription然后存储到订阅表中。该表以事件类型为key,以订阅列表为value。 如果该订阅对象中没有标识为Subscriber的函数,那么该订阅对象不会被处理。

G

getDefault() - Static method in class org.simple.eventbus.EventBus
 
getDescriptor() - Method in class org.simple.eventbus.EventBus
get the descriptor of EventBus
getEventQueue() - Method in class org.simple.eventbus.EventBus
获取等待处理的事件队列
getStickyEvents() - Method in class org.simple.eventbus.EventBus
 
getSubscriberMap() - Method in class org.simple.eventbus.EventBus
返回订阅map

H

handleEvent(Subscription, Object) - Method in class org.simple.eventbus.handler.AsyncEventHandler
将订阅的函数执行在异步线程中
handleEvent(Subscription, Object) - Method in class org.simple.eventbus.handler.DefaultEventHandler
handle the event
handleEvent(Subscription, Object) - Method in interface org.simple.eventbus.handler.EventHandler
处理事件
handleEvent(Subscription, Object) - Method in class org.simple.eventbus.handler.UIThreadEventHandler
 
hashCode() - Method in class org.simple.eventbus.EventType
 
hashCode() - Method in class org.simple.eventbus.Subscription
 

M

MatchPolicy - Interface in org.simple.eventbus.matchpolicy
 

O

org.simple.eventbus - package org.simple.eventbus
 
org.simple.eventbus.handler - package org.simple.eventbus.handler
 
org.simple.eventbus.matchpolicy - package org.simple.eventbus.matchpolicy
 

P

post(Object) - Method in class org.simple.eventbus.EventBus
post a event
post(Object, String) - Method in class org.simple.eventbus.EventBus
post event with tag
postSticky(Object) - Method in class org.simple.eventbus.EventBus
 
postSticky(Object, String) - Method in class org.simple.eventbus.EventBus
 

R

register(Object) - Method in class org.simple.eventbus.EventBus
register a subscriber into the mSubcriberMap, the key is subscriber's method's name and tag which annotated with Subscriber, the value is a list of Subscription.
registerSticky(Object) - Method in class org.simple.eventbus.EventBus
以sticky的形式注册,则会在注册成功之后迭代所有的sticky事件
removeMethodsFromMap(Object) - Method in class org.simple.eventbus.SubsciberMethodHunter
remove subscriber methods from map
removeStickyEvent(Class<?>) - Method in class org.simple.eventbus.EventBus
 
removeStickyEvent(Class<?>, String) - Method in class org.simple.eventbus.EventBus
移除Sticky事件

S

setAsyncEventHandler(EventHandler) - Method in class org.simple.eventbus.EventBus
设置执行在异步线程的事件处理器
setMatchPolicy(MatchPolicy) - Method in class org.simple.eventbus.EventBus
设置订阅函数匹配策略
setPostThreadHandler(EventHandler) - Method in class org.simple.eventbus.EventBus
设置执行在post线程的事件处理器
setUIThreadEventHandler(EventHandler) - Method in class org.simple.eventbus.EventBus
设置执行在UI线程的事件处理器
StrictMatchPolicy - Class in org.simple.eventbus.matchpolicy
 
StrictMatchPolicy() - Constructor for class org.simple.eventbus.matchpolicy.StrictMatchPolicy
 
SubsciberMethodHunter - Class in org.simple.eventbus
the subscriber method hunter, find all of the subscriber's methods which annotated with @Subcriber.
SubsciberMethodHunter(Map<EventType, CopyOnWriteArrayList<Subscription>>) - Constructor for class org.simple.eventbus.SubsciberMethodHunter
 
Subscriber - Annotation Type in org.simple.eventbus
事件接收函数的注解类,运用在函数上
subscriber - Variable in class org.simple.eventbus.Subscription
订阅者对象
Subscription - Class in org.simple.eventbus
订阅者对象,包含订阅者和目标方法
Subscription(Object, TargetMethod) - Constructor for class org.simple.eventbus.Subscription
 

T

tag - Variable in class org.simple.eventbus.EventType
函数的tag
targetMethod - Variable in class org.simple.eventbus.Subscription
接受者的方法
threadMode - Variable in class org.simple.eventbus.Subscription
执行事件的线程模型
ThreadMode - Enum in org.simple.eventbus
事件发布的线程模式枚举
toString() - Method in class org.simple.eventbus.EventType
 

U

UIThreadEventHandler - Class in org.simple.eventbus.handler
事件处理在UI线程,通过Handler将事件处理post到UI线程的消息队列
UIThreadEventHandler() - Constructor for class org.simple.eventbus.handler.UIThreadEventHandler
 
unregister(Object) - Method in class org.simple.eventbus.EventBus
Deprecated.

V

valueOf(String) - Static method in enum org.simple.eventbus.ThreadMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.simple.eventbus.ThreadMode
Returns an array containing the constants of this enum type, in the order they are declared.
A C D E F G H M O P R S T U V 
Skip navigation links