Back to project page EventPool.
The source code is released under:
Apache License
If you think the Android project EventPool listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package me.dawson.eventpool; /*from w w w . ja v a 2s .c o m*/ import java.lang.reflect.Method; public class ListenerHolder { // event name to receive private String event; // corresponding method name private Method method; // listener object stub private Object listener; // if run on main thread private boolean isMain; public ListenerHolder() { isMain = true; } public String getEvent() { return event; } public void setEvent(String event) { this.event = event; } public Method getMethod() { return method; } public void setMethod(Method method) { this.method = method; } public Object getListener() { return listener; } public void setListener(Object listener) { this.listener = listener; } public boolean getIsMain() { return isMain; } public void setIsMain(boolean isMain) { this.isMain = isMain; } }