# ksp

Yurii Surzhykov

03/18/2024, 6:39 PM
Hi guys! I have a question about incremental ksp processing. Let's take an example, I have list of classes annotated with my custom annotation @FactoryComponent, I want to generate a factory class for those components. But let's say some of symbols are not valid. So when I'm generating the factory file do I need to provide list of all files even if it contains not valid symbols, or do I need to provide only files for valid symbols? Thanks in advance!

Ting-Yuan Huang

03/18/2024, 9:34 PM
The general principle is that, if a change to file / class / element should trigger a rebuild of the other, then there should be a link between them. In this particular case, I think you'll need to associate the list of all files, even if some of them are not valid, so that in the future when some of these files become ready / valid, they'll trigger the re-build of the factory to include them.

Yurii Surzhykov

03/18/2024, 9:37 PM
@Ting-Yuan Huang ok, this is helpful answer! Thank you very much!
👍 1