Thread: What is AbstractProcessor in Java?

Forum : Others.   15-11-2017 05:17:39 PM
User Image
Dhananjay3

Newbie

Joined: Apr 20, 2017

Points: 100

Threads: 5

Posts: 8

What is AbstractProcessor in Java?

| Quote Date : Nov 15, 2017    Views:392    

What is AbstractProcessor in Java?

tags: java

Comments

User Image
Sriman

Member

Joined : Jul 15, 2016

Points : 560

Threads: 641

Posts: 170

Re: What is AbstractProcessor in Java?

Reply Date : Nov 15, 2017

If you want to write a Custom Annotation and want to process it at the Compile-Time then you have to write Custom Annotation Processor by extending from AbstractProcessor.
During the compile-time the javac check for annotation processor packaged as part of your application and passes the Source Code as an input to generate the new source code based on your annotation.
I hope this helps.

Load More

No More Comments