@ComponentType(version=1)publicclassHelloWorld{@Startpublicvoidstart(){System.out.println("Hello World!");}@Updatepublicvoidupdate(){System.out.println("My world is changing");}@Stoppublicvoidstop(){System.out.println("Bye World!");}}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

constAbstractComponent=require('kevoree-entities/lib/AbstractComponent');constHelloWorld=AbstractComponent.extend({toString:'HelloWorld',tdef_version:1,start(done){this.log.info('Hello world!');done();},update(done){this.log.info('My world is changing');done();},stop(done){this.log.info('Bye world!');done();}});