TorPlugin implements a number of interfaces, Service and EventListener are from our own codebase while EventHandler is from jtorctl. I think we'd either need to port them over to the library as well or wrap the plugin in a component in the projects where it's being used and implement Service and EventListener there based on the shared class.