java annotations - small prog
i've got some test-prog to write using annotations, there are some guidelines how it has to look like, so here they are:
i have to define @Bind annotation which used for chosen fields of a class let me add their values to a map behind the keys = variable names.
The process of adding and getting values to/from the map has to find his place in another class called Binder.
i'm new in java things so..... :(
things i must follow:
-----------------------
public class Test {
@Bind static double a;
@Bind static double b;
double static c;
somwhere in a method:
a = 7;
b = 12;
c = 1;
in some method of a constructor:
Binder bdr = new Binder(...)
bdr.bind();
somwhere else:
Map<..> map = bdr.getMap();
and using 'map' there should be a possibility to access the values of 'a' and 'b', but not the 'c'.
It seems to be very easy, but not for me, not now... can anyone help me to do this so i can be able to work on other things like that... thx in advance!