Annotation Processing in Java | Create a Custom Annotation Processor | Geekific

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 20

  • @AdarshaPal-w5o
    @AdarshaPal-w5o 6 месяцев назад +3

    Looked so many articeles to work with Custom annotation. Couldn't find one.
    Stumbled acroos this today. This was really great and very well structured.
    Keep up the good work . Thanks again🎉🎉

  • @bibahbibah5108
    @bibahbibah5108 26 дней назад

    best video for annotations processing, i search a lot even in ChatGpt and nothing works without a external libs, but u give us gold man thanks ❤

    • @geekific
      @geekific  26 дней назад +1

      Glad it helped! Thank you

  • @Grynjolf
    @Grynjolf 3 месяца назад

    How do I do it without having to pull in a package?

  • @lewnpapadopoulos
    @lewnpapadopoulos 2 года назад +3

    This channel is a treasure trove of useful Java and computer science info! 🎉🎉🎉 Keep up the good work! 💯👏

    • @geekific
      @geekific  2 года назад

      Wow, thank you! Will do :)

  • @nerminkarapandzic5176
    @nerminkarapandzic5176 Год назад +2

    Nice explanation, thank you for taking the time to create this video, I subscribed immediately.

    • @geekific
      @geekific  Год назад

      Glad you found it helpful :) Thanks for the support!

  • @grcq07_apex
    @grcq07_apex Год назад +1

    I tried this before and it never worked, but after this video I finally got it to work! Thanks!
    But I got one question, how can I make annotations to generate code into the same class and make it usuable while coding? (Just like Lombok with @Getter, @Setter, etc...)

    • @geekific
      @geekific  Год назад

      Nice! Check this video, it'll answer your question: ruclips.net/video/Vbc1YHVWFhg/видео.html. Any annotation you create can be usable while coding.

  • @AdarshaPal-w5o
    @AdarshaPal-w5o 6 месяцев назад

    I have similar use case but using custom annotation i want to generate a logger object
    Something similar to what @sl4j of lombos does.
    I have done all the steps but unable to get object of my custom logger class when I use the custom class level annotation

  • @НикитаБаженов-э9о
    @НикитаБаженов-э9о 2 года назад +1

    😍😍

  • @iamshakiransari
    @iamshakiransari 2 года назад

    Excellent 👍
    Is it possible to change or modify existing class such as @NotNull annotations?

    • @geekific
      @geekific  2 года назад

      You can name the annotations you create anything you want, just take care with your imports!

    • @iamshakiransari
      @iamshakiransari 2 года назад

      Thanks for replying.. what i meant how to make changes in existing Java class, what you showed it creates a new class

  • @wasim289
    @wasim289 Год назад

    but how process method is getting called?

    • @geekific
      @geekific  Год назад

      When you compile your code, the compiler will call it automatically. You can make use of the command provided at 7:22 and add a break point inside it to make sure it does. Hope this helps! Cheers!

    • @Gamebuster
      @Gamebuster 4 месяца назад

      @@geekific This assumes you're using maven as your build tool.

  • @svalyavasvalyava9867
    @svalyavasvalyava9867 2 года назад

    thank you for the explanation of this topic!

    • @geekific
      @geekific  2 года назад

      Glad it was helpful :)