Back to project page ixming-android-inject.
The source code is released under:
Apache License
If you think the Android project ixming-android-inject 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 org.ixming.android.inject; //www .j ava 2 s .co m /** * ???????????????? * <p> * ????????????????????????????????????????? * ??????????????????????????? * </p> * <p> * ???????????? * </p> * @author Yin Yong * @version 1.0 */ public class InjectConfigure { // ????????????????????????????Res??? private boolean mInjectReses = true; // ????????????????????????????View private boolean mInjectViews = true; // ?????????????????onClick?? private boolean mInjectOnClickMethods = true; /** * ???????????? */ public InjectConfigure() {} /** * ???????????????????? * @return ??????????????? */ public InjectConfigure setToAll(boolean ifInject) { mInjectReses = ifInject; mInjectViews = ifInject; mInjectOnClickMethods = ifInject; return this; } /** * ????????????????????????????Res??? * @return ??????????????? */ public InjectConfigure injectReses(boolean ifInject) { mInjectReses = ifInject; return this; } /** * ????????????????????????????View * @return ??????????????? */ public InjectConfigure injectViews(boolean ifInject) { mInjectViews = ifInject; return this; } /** * ?????????????????onClick?? * @return ??????????????? */ public InjectConfigure injectOnClickMethods(boolean ifInject) { mInjectOnClickMethods = ifInject; return this; } /** * @return ????????????????????????????Res??? */ public boolean isInjectReses() { return mInjectReses; } /** * @return ????????????????????????????View */ public boolean isInjectViews() { return mInjectViews; } /** * @return ?????????????????onClick?? */ public boolean isInjectOnClickMethods() { return mInjectOnClickMethods; } @Override public String toString() { return "InjectConfigure [mInjectReses=" + mInjectReses + ", mInjectViews=" + mInjectViews + ", mInjectOnClickMethods=" + mInjectOnClickMethods + "]"; } }