Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Without Extending #3

Open
SandNerd opened this issue Feb 3, 2016 · 1 comment
Open

Without Extending #3

SandNerd opened this issue Feb 3, 2016 · 1 comment

Comments

@SandNerd
Copy link

SandNerd commented Feb 3, 2016

Is there anyway to use the library without extending base classes?

Also, out of curiosity, why didn't you use the dispatcher/listener approach over the code-injunction approach commonly used with AOP?

Thanks.

@savvasdalkitsis
Copy link
Contributor

savvasdalkitsis commented Apr 24, 2016

Hello sahal2080,

sorry for the very late reply.

The library currently only works by extending a base class. The idea behind the library was that you will only ever have to extend one class and all behaviours you need can be composed using it.

I'm also a bit confused about the suggested approaches you mention. We are using a dispatcher/listener approach.

Unlike proper AOP, this library doesn't use the equivalent of java agents bytecode weaving to do its work. It uses reflection at class creation time to create a list of listeners to dispatch events to.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants