Mercurial > hg > Database > Christie
changeset 28:d1fc3ebb269e
minor change
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 30 Jan 2018 19:55:14 +0900 |
parents | da373b25ae06 |
children | be58bfe90766 |
files | src/main/java/christie/annotation/RemotePeek.java src/main/java/christie/annotation/RemoteTake.java src/main/java/christie/codegear/CodeGear.java src/main/java/christie/test/RemoteTake/RemoteTakeTest.java src/main/java/christie/test/TestLocal/TestCodeGear.java |
diffstat | 5 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/christie/annotation/RemotePeek.java Sat Jan 27 16:41:59 2018 +0900 +++ b/src/main/java/christie/annotation/RemotePeek.java Tue Jan 30 19:55:14 2018 +0900 @@ -8,6 +8,6 @@ @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) public @interface RemotePeek { - String dsmName(); + String dgmName(); String key(); }
--- a/src/main/java/christie/annotation/RemoteTake.java Sat Jan 27 16:41:59 2018 +0900 +++ b/src/main/java/christie/annotation/RemoteTake.java Tue Jan 30 19:55:14 2018 +0900 @@ -12,6 +12,6 @@ @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) public @interface RemoteTake { - String dsmName(); + String dgmName(); String key(); } \ No newline at end of file
--- a/src/main/java/christie/codegear/CodeGear.java Sat Jan 27 16:41:59 2018 +0900 +++ b/src/main/java/christie/codegear/CodeGear.java Tue Jan 30 19:55:14 2018 +0900 @@ -39,7 +39,7 @@ setPeekCommand("local", ano.value(), initDataGear(field, ano.value())); } else if (field.isAnnotationPresent(RemoteTake.class)) { RemoteTake ano = field.getAnnotation(RemoteTake.class); - setTakeCommand("local", ano.key(), initDataGear(field, ano.key())); + setTakeCommand(ano.dgmName(), ano.key(), initDataGear(field, ano.key())); } //ToDo:add remote peek }
--- a/src/main/java/christie/test/RemoteTake/RemoteTakeTest.java Sat Jan 27 16:41:59 2018 +0900 +++ b/src/main/java/christie/test/RemoteTake/RemoteTakeTest.java Tue Jan 30 19:55:14 2018 +0900 @@ -7,10 +7,10 @@ public class RemoteTakeTest extends CodeGear{ - @RemoteTake(dsmName = "remote",key = "hoge") + @RemoteTake(dgmName = "remote",key = "hoge") public DataGear<Integer> hoge = new DataGear<>(); - @RemoteTake(dsmName = "remote",key = "cgmID") + @RemoteTake(dgmName = "remote",key = "cgmID") public DataGear<Integer> cgmID = new DataGear<>(); @Override
--- a/src/main/java/christie/test/TestLocal/TestCodeGear.java Sat Jan 27 16:41:59 2018 +0900 +++ b/src/main/java/christie/test/TestLocal/TestCodeGear.java Tue Jan 30 19:55:14 2018 +0900 @@ -12,7 +12,7 @@ public class TestCodeGear extends CodeGear { @Take("hoge") - public DataGear<Integer> hoge = new DataGear<>(); + public DataGear<Integer> hoge = new DataGear<>();//必ずこの書き方でないとエラー public void run(CodeGearManager cgm){ System.out.println(hoge.getData());