metarhia / metarhia/jstp-java

Create EventHandler annotation for Proxy methods

Open
#19 1 comment 0 reactions 1 assignee Claimed by @lundibundi View on GitHub
compiler discussion feature-request
Dominant language
Java
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

We should add an `@EventHandler` annotation for Proxy methods to process incoming events in the way like this:

```java
@EventHandler
void onSomeEvent(List args);
```
```java
@EventHandler("eventName")
void onSomeEvent(List args);
```
```java
@EventHandler({"interfaceName", "eventName"})
void onSomeEvent(List args);
```

With this annotation the generated class for Proxy should be abstract, so that the User'll later implement handlers for methods with `@EventHandler` annotation.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.