Is there a way to implement a 'Runnable' for a modelled class?

18 views
Skip to first unread message

Dhiren A

unread,
Jan 29, 2019, 2:14:51 PM1/29/19
to foam-framework-discuss
I am trying to model a class which I want to implement the `Runnable` interface. Is there any way to do this?

implements: [ 'java.lang.Runnable' ],

throws an error:

No such interface or trait: java.lang.Runnable

P.S. Extending Thread doesn't work either.

Mike Carcasole

unread,
Jan 29, 2019, 2:18:19 PM1/29/19
to Dhiren A, foam-framework-discuss
The 'implements' property on a model should contain an array of model IDs. What you're looking for is 'javaImplements'. Here's an example:

--
You received this message because you are subscribed to the Google Groups "foam-framework-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to foam-framework-di...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dhiren Audich

unread,
Jan 29, 2019, 2:19:56 PM1/29/19
to foam-framework-discuss
Perfect! That's what I was looking for.

Cheers
To unsubscribe from this group and stop receiving emails from it, send an email to foam-framework-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages