All Questions
7 questions
0
votes
0
answers
97
views
I want annotation that runs after method call itself according to return type in PHP
For example I have method that has boolean return type. I need a annotation or structure which it runs if method return true in PHP. Key point is I need separate the concerns, I don't want write this ...
1
vote
1
answer
908
views
Stream through methods to find Rest mapping information
I have a simple, but incredibly ugly looking method.
The issue I am having is that I feel this can be done a million times more elegantly. In addition, I would also like to scan a method for more ...
2
votes
1
answer
3k
views
How i can change method annotations value in RunTime?
I have controller like
@MessageMapping("/room.register")
@SendTo("#{sendTo}")
public Message addUser(@Payload Message message,
SimpMessageHeaderAccessor headerAccessor) {
...
3
votes
1
answer
5k
views
How to get annotations from parent method?
I have an interface:
public interface JustToCheckInterface {
@MyCheck(feature = "occurrence-logging")
void log();
void log2();
@MyCheck(feature = "check-logging")
void log3();
}...
0
votes
1
answer
735
views
How to get parameter name in aspectj advice class?
I am asking this question with my limited knowledge of java reflection and AOP.
Background:
I am using annotation based advice in my Java 7 application. Further to get the method parameter which I ...
3
votes
1
answer
181
views
How do I access parameters specified in a Java Aspect?
I have an annotation called "@ProgressCheck" that we can put on a controller to check the progress of an application. If the application is already submitted or late, then it throws the user to a ...
6
votes
6
answers
12k
views
Java - Register all classes annotated with @MyAnnotation
I have an annotation @MyAnnotation and I can annotate any type (class) with it. Then I have a class called AnnotatedClassRegister and I would like it to register all classes annotated with @...