Package 

Interface VOKPlugin


  • 
    public interface VOKPlugin
    
                        

    Implement this interface to be invoked from VaadinOnKotlin.init and VaadinOnKotlin.destroy methods. The plugins are initialized in random order.

    VOK uses java.util.ServiceLoader to discover instances of this interface. To register, just create a file named META-INF/services/eu.vaadinonkotlin.VOKPlugin in src/main/resources and list all full class names of classes implementing this interface.

    You can e.g. use this feature to attach extension fields to VaadinOnKotlin and initialize them.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit init() Called from VaadinOnKotlin.init.
      abstract Unit destroy() Called from VaadinOnKotlin.destroy.
      • Methods inherited from class eu.vaadinonkotlin.VOKPlugin

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait