Hi One workaround that you can try is by implementing a SlingPostProcessor such that it registers several resource type based post processors and then delegates to the appropriate post processor based on the resource type. This would at-least do away with the requirement of having if-else conditionals redundantly in your post processor implementations. For e.g. see [1]
Regards Satya Deep [1] - https://gist.github.com/sdmcraft/94fdfc5e031a5ffdc3dd On Fri, May 22, 2015 at 2:25 PM, Santiago García Pimentel < santiago.pimen...@netcentric.biz> wrote: > Hello, > > I've been looking at sling post processor and I noticed that the idea of > being able to register them by resourcetype has been raised in more than > once occasion [0],[1]. > > What is the state on this? I could not find any documentation regarding it > > Thank you > > > [0]: > http://apache-sling.73963.n3.nabble.com/Selective-SlingPostProcessors-td120608.html > [1]: > http://markmail.org/thread/pne4tt26hhbfdacs#query:+page:1+mid:pne4tt26hhbfdacs+state:results > -- > *Santiago García Pimentel* | Software Engineer > Netcentric Ibérica SL > Av. Diagonal 123 -8ª > 08005 Barcelona > España > Skype: santiago.garciapimentel > santiago.pimen...@netcentric.biz | www.netcentric.es >