Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API super-class #8

Closed
Bethibande opened this issue Mar 3, 2024 · 1 comment
Closed

API super-class #8

Bethibande opened this issue Mar 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Bethibande
Copy link
Owner

Bethibande commented Mar 3, 2024

Task

Add a super-class (i.e interface or abstract class) for the Api classes generated by the processor.
This class should contain boilerplate code like the close function or another interface for the localActorSystem function of the companion object.
The super-class should also delegate some functions of the wrapped AbstractActor instance like isClosed and isRunning,
the send function may also become part of the super-class.

Motivation

This will reduce the boilerplate generated by the processor. Chaning this boilerplate code or adding functionallity will be easier and may not even require a change to the code-generation after this change.
Implementing this change will also make implementing custom actors without the processor easier.

@Bethibande Bethibande added the enhancement New feature or request label Mar 3, 2024
Bethibande added a commit that referenced this issue Apr 13, 2024
@Bethibande
Copy link
Owner Author

Close command has not been abstracted yet as the way close commands are handled will be changed with #22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant