Results 1 to 4 of 4
  1. #1
    gvanto is offline Member
    Join Date
    Nov 2013
    Posts
    10
    Rep Power
    0

    Question Which file Does Qualifier Code Go Into?

    Hi all,

    I'm currently working my way through the "Beginning Java EE 7 - Antonio Goncalvez" book and I'm a little stuck on page 62 (Under "Putting It all Together") - Where does the qualifier code need to go (which file?)?

    Java Code:
    Listing 2-50. The Loggable Inteceptor Binding
    @InterceptorBinding
    @Target({METHOD, TYPE})
    @Retention(RUNTIME)
    public @interface Loggable { }
    I'm not sure where to put this (and the other qualifiers' code) ie. what is the filename it should be saved as?

    Help much appreciated,
    gvanto
    Free WordPress Blog Setup, Guest Blogging, WordPress Plugins | Twoggle

  2. #2
    gvanto is offline Member
    Join Date
    Nov 2013
    Posts
    10
    Rep Power
    0

    Default Re: Which file Does Qualifier Code Go Into?

    OK thats fine I have put them in interface (.java) files since they are interfaces :)

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,275
    Rep Power
    6

    Default Re: Which file Does Qualifier Code Go Into?

    You seem to be lacking very basic (core) Java knowledge and understanding; you don't even have the terminology straight yet. Which means you are severely jumping the gun trying to learn JEE and this is going to be a very difficult and frustrating learning process for you.

    I would seriously reconsider taking a few steps back and starting with a good book on core Java (Java the Complete Reference is a good bet), combined with the book Effective Java 2nd Edition.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    gvanto is offline Member
    Join Date
    Nov 2013
    Posts
    10
    Rep Power
    0

    Default Re: Which file Does Qualifier Code Go Into?

    Thanks buddy but I've actually done Java for several years. Cheers for the unhelpful response though pal.

    Good signature tho lol

Similar Threads

  1. Replies: 3
    Last Post: 09-20-2013, 04:38 PM
  2. Replies: 2
    Last Post: 03-12-2013, 11:17 AM
  3. The code does not create a file
    By yma16 in forum New To Java
    Replies: 11
    Last Post: 01-12-2013, 09:07 PM
  4. code run with eclipse but not with bat file
    By livnihai in forum Eclipse
    Replies: 15
    Last Post: 09-17-2009, 04:58 PM
  5. Replies: 3
    Last Post: 07-30-2007, 08:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •