public void addDependency ( Service service ) { assertDuringInitialization ( ) ; LOG . info ( "Adding a dependency on {} to {}" , service . getName ( ) , getName ( ) ) ; addDependsOn ( service ) ; service . addDependedBy ( this ) ; }
Adds a service this service depends on .