Android Open Source - ixming-android-inject Inject Configure






From Project

Back to project page ixming-android-inject.

License

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.

Java Source Code

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 + "]";
  }
  
}




Java Source Code List

org.ixming.android.MainActivity.java
org.ixming.android.inject.InjectConfigure.java
org.ixming.android.inject.InjectorUtils.java
org.ixming.android.inject.ResTargetType.java
org.ixming.android.inject.annotation.OnClickMethodInject.java
org.ixming.android.inject.annotation.ResInject.java
org.ixming.android.inject.annotation.ViewInject.java
org.ixming.android.inject.annotation.ViewOnClickInject.java
org.ixming.android.inject.annotation.package-info.java
org.ixming.android.inject.core.ActivityInjectLoader.java
org.ixming.android.inject.core.BaseInjectLoader.java
org.ixming.android.inject.core.IOnClickListenerInjector.java
org.ixming.android.inject.core.IResInjector.java
org.ixming.android.inject.core.IViewFinder.java
org.ixming.android.inject.core.IViewInjector.java
org.ixming.android.inject.core.InjectLoaderFactory.java
org.ixming.android.inject.core.ResLoader.java
org.ixming.android.inject.core.ViewInjectLoader.java
org.ixming.android.inject.core.WrappedViewFinder.java
org.ixming.android.inject.themed.ThemedInjectConfigure.java
org.ixming.android.inject.themed.ThemedInjectorUtils.java
org.ixming.android.inject.themed.ThemedResInject.java
org.ixming.android.inject.themed.package-info.java
org.ixming.android.inject.package-info.java