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

项目:guice    文件:Elements.java   
/** Creates a private recording binder. */
private RecordingBinder(RecordingBinder parent, PrivateElementsImpl privateElements) {
  this.stage = parent.stage;
  this.modules = Maps.newLinkedHashMap();
  this.scanners = Sets.newLinkedHashSet(parent.scanners);
  this.elements = privateElements.getElementsMutable();
  this.source = parent.source;
  this.moduleSource = parent.moduleSource;
  this.sourceProvider = parent.sourceProvider;
  this.parent = parent;
  this.privateElements = privateElements;
  this.privateBinders = parent.privateBinders;
}
项目:guice    文件:Elements.java   
@Override
public PrivateBinder newPrivateBinder() {
  PrivateElementsImpl privateElements = new PrivateElementsImpl(getElementSource());
  RecordingBinder binder = new RecordingBinder(this, privateElements);
  privateBinders.add(binder);
  elements.add(privateElements);
  return binder;
}
项目:guice-old    文件:Elements.java   
/** Creates a private recording binder. */
private RecordingBinder(RecordingBinder parent, PrivateElementsImpl privateElements) {
  this.stage = parent.stage;
  this.modules = Sets.newHashSet();
  this.elements = privateElements.getElementsMutable();
  this.rehashables = Lists.newArrayList();
  this.source = parent.source;
  this.moduleSource = parent.moduleSource;
  this.sourceProvider = parent.sourceProvider;
  this.parent = parent;
  this.privateElements = privateElements;
}
项目:guice-old    文件:Elements.java   
public PrivateBinder newPrivateBinder() {
  PrivateElementsImpl privateElements = new PrivateElementsImpl(getElementSource());
  RecordingBinder binder = new RecordingBinder(this, privateElements);
  elements.add(privateElements);
  rehashables.add(binder);
  return binder;
}
项目:google-guice    文件:Elements.java   
/** Creates a private recording binder. */
private RecordingBinder(RecordingBinder parent, PrivateElementsImpl privateElements) {
  this.stage = parent.stage;
  this.modules = Sets.newHashSet();
  this.elements = privateElements.getElementsMutable();
  this.source = parent.source;
  this.sourceProvider = parent.sourceProvider;
  this.parent = parent;
  this.privateElements = privateElements;
}
项目:google-guice    文件:Elements.java   
public PrivateBinder newPrivateBinder() {
  PrivateElementsImpl privateElements = new PrivateElementsImpl(getSource());
  elements.add(privateElements);
  return new RecordingBinder(this, privateElements);
}