use<Id, Data, T extends Service<Id, Data> > method
HookedService<Id, Data, T>
use<Id, Data, T extends Service<Id, Data> >(
- String path,
- 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;
}