Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #22223

Re: PUT DATA

Date 2013-02-08 19:52 -0500
From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: PUT DATA
References <i4uah8h7g0ft1r1b3ljsuinat0luq209p8@4ax.com> <51157d6d$0$291$14726298@news.sunsite.dk> <54cfb631-0b26-4e82-a58d-c9d094f4329e@googlegroups.com> <511595c5$0$283$14726298@news.sunsite.dk> <nZgRs.218654$pV4.191473@newsfe21.iad>
Message-ID <51159db8$0$288$14726298@news.sunsite.dk> (permalink)
Organization SunSITE.dk - Supporting Open source

Show all headers | View raw


On 2/8/2013 7:44 PM, Arved Sandstrom wrote:
> On 02/08/2013 08:18 PM, Arne Vajhøj wrote:
>> On 2/8/2013 7:13 PM, Lew wrote:
>>> Arne Vajhøj wrote:
>>>>> And annotations are put on types not on instances.
>>>
>>> http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/ElementType.html
>>>
>>>
>>> contradicts you.
>>>
>>> How else would injection work?
>>
>> ????
>>
>> X a;
>> X b;
>>
>> what annotation are you suggesting that I use two distinguish between
>> the two X'es?
>>
> This suddenly got confusing. I believe we all know that we can have one
> set of annotations on
>
> X a;
>
> and a completely different set of annotations on
>
> X b;
>
> Clearly the annotations must be appropriate for type 'X', but they are
> separately associated to 'a' and to 'b'.

Maybe I am the only one in the known universe that don't know.

But let us say we have:

X a = new X(aa);
X b = new X(bb);
test(a,b);

void test(X a,X b) {
}

How should the annotation look like, how should it be put on and
how do I get it in test?

I know how to put an annotation on the type X that I can get in
test. But that is the same for both a and b. Roedy needs a
different annotation (value).

I don't think I have ever seen that done with instances.

Arne

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PUT DATA Roedy Green <see_website@mindprod.com.invalid> - 2013-02-08 14:21 -0800
  Re: PUT DATA Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 17:34 -0500
    Re: PUT DATA Lew <lewbloch@gmail.com> - 2013-02-08 16:13 -0800
      Re: PUT DATA Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 19:18 -0500
        Re: PUT DATA Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-08 20:44 -0400
          Re: PUT DATA Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 19:52 -0500
            Re: PUT DATA Lew <lewbloch@gmail.com> - 2013-02-08 17:06 -0800
              Re: PUT DATA Lew <lewbloch@gmail.com> - 2013-02-08 17:08 -0800
              Re: PUT DATA Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 20:09 -0500
                Re: PUT DATA Lew <lewbloch@gmail.com> - 2013-02-08 17:16 -0800
                Re: PUT DATA Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 20:36 -0500
                Re: PUT DATA Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-09 08:14 -0400
  Re: PUT DATA Lew <lewbloch@gmail.com> - 2013-02-08 16:10 -0800
    Re: PUT DATA Roedy Green <see_website@mindprod.com.invalid> - 2013-02-09 09:54 -0800
  Re: PUT DATA Roedy Green <see_website@mindprod.com.invalid> - 2013-02-09 15:49 -0800
    Re: PUT DATA Arne Vajhøj <arne@vajhoej.dk> - 2013-02-09 19:21 -0500

csiph-web