Java 类org.greenrobot.eventbus.SubscriberMethod 实例源码

项目:GitHub    文件:AbstractSubscriberInfo.java   
protected SubscriberMethod createSubscriberMethod(String methodName, Class<?> eventType, ThreadMode threadMode,
                                                  int priority, boolean sticky) {
    try {
        Method method = subscriberClass.getDeclaredMethod(methodName, eventType);
        return new SubscriberMethod(method, eventType, threadMode, priority, sticky);
    } catch (NoSuchMethodException e) {
        throw new EventBusException("Could not find subscriber method in " + subscriberClass +
                ". Maybe a missing ProGuard rule?", e);
    }
}
项目:GitHub    文件:SimpleSubscriberInfo.java   
@Override
public synchronized SubscriberMethod[] getSubscriberMethods() {
    int length = methodInfos.length;
    SubscriberMethod[] methods = new SubscriberMethod[length];
    for (int i = 0; i < length; i++) {
        SubscriberMethodInfo info = methodInfos[i];
        methods[i] = createSubscriberMethod(info.methodName, info.eventType, info.threadMode,
                info.priority, info.sticky);
    }
    return methods;
}
项目:AyoSunny    文件:AbstractSubscriberInfo.java   
protected SubscriberMethod createSubscriberMethod(String methodName, Class<?> eventType, ThreadMode threadMode,
                                                  int priority, boolean sticky) {
    try {
        Method method = subscriberClass.getDeclaredMethod(methodName, eventType);
        return new SubscriberMethod(method, eventType, threadMode, priority, sticky);
    } catch (NoSuchMethodException e) {
        throw new EventBusException("Could not find subscriber method in " + subscriberClass +
                ". Maybe a missing ProGuard rule?", e);
    }
}
项目:AyoSunny    文件:SimpleSubscriberInfo.java   
@Override
public synchronized SubscriberMethod[] getSubscriberMethods() {
    int length = methodInfos.length;
    SubscriberMethod[] methods = new SubscriberMethod[length];
    for (int i = 0; i < length; i++) {
        SubscriberMethodInfo info = methodInfos[i];
        methods[i] = createSubscriberMethod(info.methodName, info.eventType, info.threadMode,
                info.priority, info.sticky);
    }
    return methods;
}
项目:lr_dialer    文件:AbstractSubscriberInfo.java   
protected SubscriberMethod createSubscriberMethod(String methodName, Class<?> eventType, ThreadMode threadMode,
                                                  int priority, boolean sticky) {
    try {
        Method method = subscriberClass.getDeclaredMethod(methodName, eventType);
        return new SubscriberMethod(method, eventType, threadMode, priority, sticky);
    } catch (NoSuchMethodException e) {
        throw new EventBusException("Could not find subscriber method in " + subscriberClass +
                ". Maybe a missing ProGuard rule?", e);
    }
}
项目:lr_dialer    文件:SimpleSubscriberInfo.java   
@Override
public synchronized SubscriberMethod[] getSubscriberMethods() {
    int length = methodInfos.length;
    SubscriberMethod[] methods = new SubscriberMethod[length];
    for (int i = 0; i < length; i++) {
        SubscriberMethodInfo info = methodInfos[i];
        methods[i] = createSubscriberMethod(info.methodName, info.eventType, info.threadMode,
                info.priority, info.sticky);
    }
    return methods;
}
项目:GitHub    文件:AbstractSubscriberInfo.java   
protected SubscriberMethod createSubscriberMethod(String methodName, Class<?> eventType) {
    return createSubscriberMethod(methodName, eventType, ThreadMode.POSTING, 0, false);
}
项目:GitHub    文件:AbstractSubscriberInfo.java   
protected SubscriberMethod createSubscriberMethod(String methodName, Class<?> eventType, ThreadMode threadMode) {
    return createSubscriberMethod(methodName, eventType, threadMode, 0, false);
}
项目:AyoSunny    文件:AbstractSubscriberInfo.java   
protected SubscriberMethod createSubscriberMethod(String methodName, Class<?> eventType) {
    return createSubscriberMethod(methodName, eventType, ThreadMode.POSTING, 0, false);
}
项目:AyoSunny    文件:AbstractSubscriberInfo.java   
protected SubscriberMethod createSubscriberMethod(String methodName, Class<?> eventType, ThreadMode threadMode) {
    return createSubscriberMethod(methodName, eventType, threadMode, 0, false);
}
项目:lr_dialer    文件:AbstractSubscriberInfo.java   
protected SubscriberMethod createSubscriberMethod(String methodName, Class<?> eventType) {
    return createSubscriberMethod(methodName, eventType, ThreadMode.POSTING, 0, false);
}
项目:lr_dialer    文件:AbstractSubscriberInfo.java   
protected SubscriberMethod createSubscriberMethod(String methodName, Class<?> eventType, ThreadMode threadMode) {
    return createSubscriberMethod(methodName, eventType, threadMode, 0, false);
}
项目:GitHub    文件:SubscriberInfo.java   
SubscriberMethod[] getSubscriberMethods();
项目:AyoSunny    文件:SubscriberInfo.java   
SubscriberMethod[] getSubscriberMethods();
项目:lr_dialer    文件:SubscriberInfo.java   
SubscriberMethod[] getSubscriberMethods();