metarhia / metarhia/jstp-java

Create CallHandler annotation for Proxy methods

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

Description

We should add a `@CallHandler` annotation for Proxy methods to process incoming calls in the way like this:
```java
@CallHandler
void onMethodCalled(List args);
```
```java
@CallHandler("methodName")
void onMethodCalled(List args);
```
```java
@CallHandler({"interfaceName", "methodName"})
void onMethodCalled(List args);
```
With this annotation the generated class for Proxy should be abstract, so that the User'll later implement handlers for methods with `@CallHandler` 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.