Stella981 Stella981
2年前
Activity跳转通过EventBus传值问题
根据阿里发布的Android开发规范:下载地址:https://102.alibaba.com/downloadFile.do?file1520478361732/Android\_v9.pdf(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2F102.alibaba.com%2Fdow
Stella981 Stella981
2年前
Guava库学习:学习Guava EventBus(二)EventBus 事件订阅示例
    原文地址:Guava库学习:学习GuavaEventBus(二)EventBus事件订阅示例(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.xx566.com%2Fdetail%2F215.html)上一篇Guava库学习:学习GuavaEventBus(一
Stella981 Stella981
2年前
EventBus3.0学习笔记
publicvoidonEvent(MessageEventevent){log(event.message);}publicvoidonEventMainThread(MessageEventevent){textField.setText(event.
Stella981 Stella981
2年前
200代码写一套属于自己的事件总线(EventBus)库
理论千万篇,不如实战来一篇。源码https://github.com/harvie1208/EventBus(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fharvie1208%2FEventBus)关键词:观察者模式、
Stella981 Stella981
2年前
EventBus框架库代码走读
PS一句:最终还是选择CSDN来整理发表这几年的知识点,该文章平行迁移到CSDN。因为CSDN也支持MarkDown语法了,牛逼啊!【工匠若水http://blog.csdn.net/yanbober(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fy
Stella981 Stella981
2年前
Event Bus 之 Otto(一)
Otto是EventBus模式的一种实现,使用它可以使事件的发送与处理解耦,为了坚挺某个事件不必再去实现相应的接口,只需简单的加标注、注册就可以实现。标注:首先来看两种标注:subscribe:@Retention(RetentionPolicy.RUNTIME)@Target(ElementTyp
可莉 可莉
2年前
200代码写一套属于自己的事件总线(EventBus)库
理论千万篇,不如实战来一篇。源码https://github.com/harvie1208/EventBus(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fharvie1208%2FEventBus)关键词:观察者模式、
Stella981 Stella981
2年前
EventBus 报“Subscriber class already registered to event class”错误
这句子的话意思也很容易理解,“接收者类已经被注册为事件类了”。之前我是这么写: 事件注册是写在onStart()里面的  @OverrideprotectedvoidonStart(){super.onStart();EventBus.getDefaul
Wesley13 Wesley13
2年前
Java反射例子汇总 Class Constructor Method Filed
一、反射概述  在平常的开发中Java的反射技术很少被用到,一般我们都是使用公司封装或者开源框架。而反射技术已经被包含到底层框架了,因此我们很少接触到。但是有些框架的原理或者源码如果想读懂就必须要理解并会使用反射技术。例如:EventBus、BufferKnife、android的插件化等等都会用到。理解了反射技术能够帮助我们更快的理解相关框架,也可以增
Stella981 Stella981
2年前
Spring4 版 eventbus 事件通信 事件驱动 介绍
开始使用1\.事件发送器@AutowiredApplicationEventPublishereventPublisher;2\.发送事件//订单准备工作完成,使订单生效eventPublisher.publishEvent(n