java


AspectJ: after returning not reached


I've created this aspect:
#Pointcut("execution(* com.living.commty.boot.resources.*.* (..))")
public void resourcesCut() {}
I'm trying to get execution after they has been returned:
#AfterReturning(pointcut="resourcesCut()", returning="result")
public void afterReturning(JoinPoint joinPoint, Object result)
{
this.logAfterReturningTrace(joinPoint, result);
}
My class is:
package com.living.commty.boot.resources;
public class EmailResources {
#Inject private ConfigurationResources configurationResources;
#Inject protected TokenResources cipheringResources;
public String buildURI(String id, byte[] token) throws URISyntaxException
{
return "";
}
public byte[] decodeParameter(String value)
{
return "";
}
public void sendActivationMail(User user) throws MailGenerationException
{
}
}
However, they are never reached.
Nevertheless, if I add an #Before:
#Before("resourcesCut()")
public void beforeCreate(JoinPoint joinPoint) {
this.logBeforeTrace(joinPoint);
}
it's reached!
ECLIPSE
As you can see into this images:
#AfterThrowing wraps a lot of methods, up to 39, more or less.
But, #AfterReturning only wraps 6 method executions...

Related Links

How to indicate type constraints in class diagram for generic type?
Prolog and java integration. How to return a tuple from a query?
Saving techniques at android text game
Swagger in my spring boot application
Android Studio : List with items (objects)
Change the wsdl:import location
What are permissions required to call(launch) other apps like whatsapp in my case from our app
how to get nested column from json file using apache spark in java [closed]
calling multiple Oracle stored procedures from Java
Follow up to: Using JSch to SFTP when one must also switch user
What is the command for the solr 4.10.1 to be run in SOLRCLOUD mode through java code
Download a file from URL with java
Active MQ concurrency for different source systems and single consumer
“java.sql.SQLException: I/O Error: Connection reset” in linux server [duplicate]
Issue with java8 lambda expression and foreach
PaintComponent() not called despite setPreferredSize of JPanel

Categories

HOME
ms-access
testing
gerrit
isabelle
single-sign-on
microservices
ckeditor
ravendb
directx
primary-key
session-variables
qt-creator
visual-studio-cordova
flux
samoa
crystal-reports-2008
zapier
kvc
zurb-foundation-6
php-openssl
jndi
tdd
semantic-analysis
rst2pdf
xacml
atlassian-crucible
flink-streaming
tinymce-4
google-cloud-endpoints-v2
noraui
ghost4j
y86
mmenu
mapdb
io-redirection
webix-treetable
cookiecutter-django
sas-visual-analytics
avro4s
core-plot
http-live-streaming
reactive-cocoa-5
logfiles
xml-documentation
filepicker
rails-routing
tactic
magma
windows-iot-core-10
akka-cluster
root-framework
vmware-tools
file-writing
impresspages
player
ready-api
essence
php-internals
ios4
unity-networking
jqgrid-formatter
security-testing
wyam
createprocessasuser
apache-commons-net
block-device
knuth
zend-route
google-reader
responsive-slides
eol
concurrent-collections
cloud-connect
terminal-services
sitemesh
qt-faststart
delphi-6
wsdl-2.0
selected
e4x
rdoc
manchester-syntax
twrequest
removeclass
code-cleanup
custom-backend
joyent
servicehost
cxxtest
fluent-interface
gamma
revisions
asp.net-profiles
perfect-hash
web-architecture
firefox4
audio-capture
data-driven
sector
defensive-programming
geneva-server
wsdl.exe

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App