How can I run a function before current function using annotations?
Posted
by Simon
on Stack Overflow
See other posts from Stack Overflow
or by Simon
Published on 2010-04-08T20:36:48Z
Indexed on
2010/04/08
20:53 UTC
Read the original article
Hit count: 336
java
|annotations
Is there any way for using an annotation for running a function before currently called function, something like this:
public void doSomethingEarlier() {
}
@DoSomethingEarlier
public void doSomething() {
}
So I want to call doSomethin() function, and before executing this function I want to automatically run doSomethingEarlier() function.
© Stack Overflow or respective owner