fromMedium
1 week agoBuilding a Smart Home Automation with Home Assistant and Scala FS2-Part 2: Service Lifecycle and...
PF4J expects that your plugin code has a class that extends org.pf4j.Plugin interface. And for running and stopping the plugin, methods start() and stop() of this interface will be called. But our service is expected to have completely pure logic - without any side effects - we need to bring these two worlds together - Java impure plugins start/stop and Scala pure logic.
Software development