foam3 icon indicating copy to clipboard operation
foam3 copied to clipboard

[NP-6979] Make it possible to generate Null implementors

Open KernelDeimos opened this issue 3 years ago • 2 comments

Allows convenient generation of no-op implementors of interfaces. For example, the code snippet below creates Loader, ProxyLoader, and NullLoader.

foam.INTERFACE({
  package: 'foam.u2.wizard.data',
  name: 'Loader',
  proxy: true,
  null: true,

  methods: [
    {
      name: 'load',
      async: true
    }
  ]
})

KernelDeimos avatar Apr 26 '22 23:04 KernelDeimos

Are we using this anywhere? If not, if it could be self-contained in it's own file (as a refinement on interface) and then don't include it in the standard POM so we don't include it if not needed.

kgrgreer avatar Apr 27 '22 15:04 kgrgreer

Are we using this anywhere? If not, if it could be self-contained in it's own file (as a refinement on interface) and then don't include it in the standard POM so we don't include it if not needed.

This will be used by WAO and the new Loader,Saver,Canceler interfaces in foam.u2.wizard

KernelDeimos avatar Apr 27 '22 15:04 KernelDeimos