diff --git a/src/main/java/algoLike/push/AttackerA.java b/src/main/java/algoLike/push/AttackerA.java index 5bd76a8..c29cb71 100644 --- a/src/main/java/algoLike/push/AttackerA.java +++ b/src/main/java/algoLike/push/AttackerA.java @@ -7,17 +7,25 @@ import org.springframework.stereotype.Component; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.core.JsonProcessingException; +import pushPullRefactor.Getter; +import pushPullRefactor.Message; +import pushPullRefactor.Resource; +import pushPullRefactor.State; @Path("/attackerA") @Component +@Resource("attackerA") public class AttackerA { + @State private int value; @PUT + @Message({}) public void setAttackerA(@FormParam("a") int a) { this.value = a; } @Produces(MediaType.APPLICATION_JSON) @GET + @Getter public int getValue() { return value; }