Accessing full method name
See original GitHub issueI need to access the fully fledged method name /[package].[service]/[method]
in a middleware. That can be done either by adding a new property to Context
or repurposing name
property to contain the full name. What do you think, which one is the better approach?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
java - Getting the name of the currently executing method
Technically this will work... String name = new Object(){}.getClass().getEnclosingMethod().getName();. However, a new anonymous inner class ...
Read more >How to Get a Name of a Method Being Executed? | Baeldung
This quick article presents a couple of simple ways of getting hold of the method name in the current execution stack.
Read more >Get name of current method being executed in Java
Getting name of currently executing method is useful for handling exceptions and debugging purposes. Below are different methods to get ...
Read more >Get Current Execution Method Name - JavaInUse
Many a times for logging purpose we require the name of current execution method. This can be achieved in following ways. Java.lang.Class.
Read more >Function.prototype.name - JavaScript - MDN Web Docs
Anonymous function expressions created using the keyword function or arrow functions would have "" (an empty string) as their name.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Started thinking / working on this. Would this be good for context?
Please provide feedback. Should have something in a few days.
Merged and published as 0.2.3.