use<Id, Data, T extends Service<Id, Data>> method

  1. @override
HookedService<Id, Data, T> use<Id, Data, T extends Service<Id, Data>>(
  1. String path,
  2. T service
)
override

Mounts a service at the given path.

Returns a HookedService that can be used to hook into events dispatched by this service.

Implementation

@override
HookedService<Id, Data, T> use<Id, Data, T extends Service<Id, Data>>(
    String path, T service) {
  service.app = this;
  return super.use(path, service)..app = this;
}