buildBinding method

  1. @override
void buildBinding()
override

Implementation

@override
void buildBinding() {
  serviceRootName = component.rootName;
  _calling = component.createCalling(this);
  _child = component.child.createBinding();
  _owner = this;
  _child.attachToParent(this);
  var _ancestor = _parent;
  while (_ancestor != null && _ancestor._owner == null) {
    _ancestor._owner = this;
    _ancestor = _ancestor._parent;
  }
  _child.buildBinding();
  _childGateway = _child.visitCallingChildren(TreeVisitor((visitor) {
    if (visitor.currentValue is GatewayCalling) {
      visitor.stop();
    }
  })).result as GatewayCalling;
  executeCronJobs();
}