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🎉🎉
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
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...)
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!
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🎉🎉
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 ❤
Glad it helped! Thank you
legend - thanks!
This channel is a treasure trove of useful Java and computer science info! 🎉🎉🎉 Keep up the good work! 💯👏
Wow, thank you! Will do :)
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
How do I do it without having to pull in a package?
Nice explanation, thank you for taking the time to create this video, I subscribed immediately.
Glad you found it helpful :) Thanks for the support!
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...)
Nice! Check this video, it'll answer your question: ua-cam.com/video/Vbc1YHVWFhg/v-deo.html. Any annotation you create can be usable while coding.
but how process method is getting called?
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!
@@geekific This assumes you're using maven as your build tool.
thank you for the explanation of this topic!
Glad it was helpful :)
Excellent 👍
Is it possible to change or modify existing class such as @NotNull annotations?
You can name the annotations you create anything you want, just take care with your imports!
Thanks for replying.. what i meant how to make changes in existing Java class, what you showed it creates a new class
😍😍