Class DaggerAdapter.Builder

  • Enclosing class:
    DaggerAdapter

    public static class DaggerAdapter.Builder
    extends Object
    Builder for setting configuration options on DaggerAdapter.
    Since:
    5.0
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • build

        public Module build()
        Returns a module that will configure bindings based on the modules and scanners.
      • addModules

        public DaggerAdapter.Builder addModules​(Iterable<Object> daggerModuleObjects)
        Adds modules (which can be classes annotated with @dagger.Module, or instances of those classes) which will be scanned for bindings.
      • filter

        public DaggerAdapter.Builder filter​(Predicate<Method> predicate)
        Limit the adapter to a subset of methods from @dagger.Module annotated classes which satisfy the predicate. Defaults to allowing all.