view src/main/java/christie/test/TestCodeGear.java @ 3:e3bb0eea73f2

resolve Annotation error and TestCodeGear is working
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Wed, 13 Dec 2017 17:24:14 +0900
parents bacdcb5e6dcf
children 3dcfe63d6394
line wrap: on
line source

package christie.test;

import christie.annotation.Take;
import christie.codegear.CodeGear;
import christie.codegear.CodeGearManager;
import christie.datagear.DataGear;


/**
 * Created by e125769 on 12/7/17.
 */
public class TestCodeGear extends CodeGear {

    @Take("hoge")
    DataGear hoge;

    @Take("huga")
    DataGear huga;

    public TestCodeGear(CodeGearManager cgm){
        super(cgm);
    }

    @Override
    public void run() {
        System.out.println("in run!");
        System.out.println(hoge.getData());
        System.out.println(huga.getData());
    }
}