Java 类com.google.inject.internal.BindingBuilder 实例源码

项目:guice    文件:Elements.java   
private RecordingBinder(Stage stage) {
  this.stage = stage;
  this.modules = Maps.newLinkedHashMap();
  this.scanners = Sets.newLinkedHashSet();
  this.elements = Lists.newArrayList();
  this.source = null;
  this.sourceProvider =
      SourceProvider.DEFAULT_INSTANCE.plusSkippedClasses(
          Elements.class,
          RecordingBinder.class,
          AbstractModule.class,
          ConstantBindingBuilderImpl.class,
          AbstractBindingBuilder.class,
          BindingBuilder.class);
  this.parent = null;
  this.privateElements = null;
  this.privateBinders = Lists.newArrayList();
}
项目:guice-scoped-proxy-extension    文件:ScopedProxyBinder.java   
private BindingBuilder<T> bindRewritten() {
    if (this.targetBuilder == null) {
        this.targetBuilder = (BindingBuilder<T>) this.binder.bind(
                this.rewrittenKey);
    }
    return this.targetBuilder;
}
项目:guice-scoped-proxy-extension    文件:ScopedProxyBinder.java   
private BindingBuilder<T> bindRewritten() {
    if (this.targetBuilder == null) {
        this.targetBuilder = (BindingBuilder<T>) this.binder.bind(
                this.rewrittenKey);
    }
    return this.targetBuilder;
}
项目:guice-old    文件:Elements.java   
private RecordingBinder(Stage stage) {
  this.stage = stage;
  this.modules = Sets.newHashSet();
  this.elements = Lists.newArrayList();
  this.rehashables = Lists.newArrayList();
  this.source = null;
  this.sourceProvider = SourceProvider.DEFAULT_INSTANCE.plusSkippedClasses(
      Elements.class, RecordingBinder.class, AbstractModule.class,
      ConstantBindingBuilderImpl.class, AbstractBindingBuilder.class, BindingBuilder.class);
  this.parent = null;
  this.privateElements = null;
}
项目:google-guice    文件:Elements.java   
private RecordingBinder(Stage stage) {
  this.stage = stage;
  this.modules = Sets.newHashSet();
  this.elements = Lists.newArrayList();
  this.source = null;
  this.sourceProvider = SourceProvider.DEFAULT_INSTANCE.plusSkippedClasses(
      Elements.class, RecordingBinder.class, AbstractModule.class,
      ConstantBindingBuilderImpl.class, AbstractBindingBuilder.class, BindingBuilder.class);
  this.parent = null;
  this.privateElements = null;
}
项目:guice    文件:Elements.java   
@Override
public <T> AnnotatedBindingBuilder<T> bind(Key<T> key) {
  BindingBuilder<T> builder =
      new BindingBuilder<T>(this, elements, getElementSource(), MoreTypes.canonicalizeKey(key));
  return builder;
}
项目:guice-old    文件:Elements.java   
public <T> AnnotatedBindingBuilder<T> bind(Key<T> key) {
  BindingBuilder<T> builder = new BindingBuilder<T>(this, elements, getElementSource(), key);
  rehashables.add(builder);
  return builder;
}
项目:google-guice    文件:Elements.java   
public <T> AnnotatedBindingBuilder<T> bind(Key<T> key) {
  return new BindingBuilder<T>(this, elements, getSource(), key);
}