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

What would a good approach be for file storage and retrieval?
Game Engine Remake - Trouble Choosing a Language /API(Java or Python) [closed]
Recovering a crashed InputStream
How should we use vectors in Java, as we used them in C++?
Prevent showing Login screen after user login
Any tools for comparing decompiled classes to source code?
Problem with extending HBase Put
Generating id in the low level API
JavaMail getConent after closing folder (folderClosedException)
Running jar with dropped file on bat
java OutOfMemory problem - heap dump 800 Mb smaller than max heap configured
Cross process synchronization in Java
How Password stored in database in encrypted format? [closed]
GWT ERROR: java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.maps.client.impl.MapImpl'
java tomcat: how to use JOAuth properly
how to i input a sentence so that the program will recognize the sentence as a single word?

Categories

HOME
omnet++
activiti
appx
fft
objectgears
sqlite-net-extensions
react-redux
amazon-ecs
sql-server-2016
serverspec
networkx
android-youtube-api
reveal.js
u-sql
alignment
visual-studio-2005
decimal
netflix
openrefine
angular-ui
serilog
oxyplot
visual-composer
scichart
amazonsellercentral
zapier
extjs5
captiveportal
microsoft-sync-framework
dynamic-featured-image
pingfederate
fluentvalidation
fabric8
iframe-resizer
google-qpx-express-api
form-data
mozilla
force-layout
space-complexity
streamsets
splice
tasker
sql-server-agent
jvm-languages
spring-security-kerberos
estimote
turbogears
unixodbc
http-redirect
total-commander
checkboxlist
wptoolkit
appcompat
react-scripts
rails-routing
ionicons
nodebb
np-complete
color-profile
gnome-shell-extensions
google-cdn
root-framework
word-vba-mac
passport-google-oauth
infix-notation
bonobo
login-control
django-debug-toolbar
paypal-express
contact-list
connect-by
python-stackless
yaws
apachebench
javax.sound.midi
pervasive-sql
rtbkit
comobject
jmeter-maven-plugin
emailrelay
map-projections
sniffer
iiviewdeckcontroller
lustre
formatjs
website-monitoring
tween
jsonpickle
coldbox
mdt
dml
valuechangelistener
datagridviewcolumn
didselectrowatindexpath
meteor-velocity
monomac
ccss
ms-project-server-2010
jsctypes
dir
tidy
jquery-mobile-dialog
android-screen-support
comaddin
simba
dice
venn-diagram
propertyeditor
tridion-worldserver
cufon
mercurial-server
xfbml
blitz++
gamequery
firefox-5
fixed-width
swing-app-framework
premature-optimization
nerddinner
thread-local-storage
commodore
misv

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