Started playing around with an event listener mechanism

Chemaclass
Chemaclass Tech Lead Spryker Solution Partner Posts: 213 🧑🏻‍🚀 - Cadet
edited May 2023 in Gacela Project

And I started playing around with a new feature that would be an event listener mechanism to be able to react on events when gacela resolves class names, so the user can do whatever they want: for example debugging, logging, tracing… This is the current PR with the idea so far: https://github.com/gacela-project/gacela/pull/215 in case you’re interested and/or you see some potential “waste” or “opportunity”" in such a feature 🧠

Tagged:

Comments

  • U02P7B6K2LC
    U02P7B6K2LC Posts: 121 🧑🏻‍🚀 - Cadet

    An event system in Gacela would be a killer feature!!

  • U02P7B6K2LC
    U02P7B6K2LC Posts: 121 🧑🏻‍🚀 - Cadet

    Having a 👀 at the PR now.

  • Chemaclass
    Chemaclass Tech Lead Spryker Solution Partner Posts: 213 🧑🏻‍🚀 - Cadet
    edited October 2022

    The question now is, what type of events would you be interested from gacela? I created so far these:
    • ResolvedClassCreatedEvent
    • ResolvedClassCachedEvent
    • ResolvedClassTryFormParentEvent
    • ResolvedDefaultClassEvent
    And all these events contains the ClassInfo , so you’ll know all info about the class that it’s been resolved and how