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

Google Maps V2 Android Doesnt Appears
Creating a plugin for TeamCity
java xalan transform with and without xinclude in the same app
Error: java.lang.IllegalStateException (EJB3 , jboss7.1)
Why do I get `java.lang.NoClassDefFoundError: scala/Function1` when I run my code in ScalaIDE?
Java Android - Will Decompiling and Compiling end successfully?
Unable to shade jar with maven (INVOKESPECIAL/STATIC)
Exception org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class
java.lang.NullPointerException with facebook onCompleted function
Lotus Notes - Mail Document - Principal/From,INetFrom, SentTime, ReceivedTime fields
How to link the button to fragment class
Hadoop Java vs C/C++ on cpu-intensive tasks
Swapping values in a stream using lambda
how to get value from key in hashmap java
Searching through large int arrays in Java
Integration BUS DFDL as Text Ouput Representation

Categories

HOME
ionic-framework
multithreading
wso2-am
clips
fluentd
mfc
stock
cplex
react-router
razor
analysis
cross-validation
php-7.1
jplayer
visual-studio-cordova
ghc
systemc
connection-string
openedx
firefox-webextensions
jprofiler
immutable.js
paging
accessor
firebase-crash-reporting
vlsi
fish
status
vision
tasklet
r-raster
javascriptcore
google-sites-2016
google-api-nodejs-client
dartium
neuroscience
sqlite2
fedex
jvm-languages
password-encryption
arena-simulation
flashair
skeleton-css-boilerplate
avconv
smartcontracts
parentheses
boost-multi-index
jlink
alphabet
return-value
jxcore
csound
magma
chord-diagram
angular-strap
parallel-data-warehouse
google-feed-api
file-writing
qcustomplot
ready-api
hsv
wso2cloud
tmuxinator
rgeo
varargs
emailrelay
drawbitmap
cisco-ios
p2
geonetwork
gui-test-framework
winddk
relocation
project-planning
tld
imdbpy
prettify
ccss
quantlib-swig
commoncrypto
runtime.exec
spring-io
blending
orchardcms-1.7
drools-planner
quickdialog
funscript
broken-links
frameset
javaspaces
jspinclude
ticoredatasync
online-compilation
nsmanagedobject
dotnethighcharts
spyware
lpeg
fluent-interface
ncqrs
thunderbird-lightning
webkit.net
kdbg
ctp4
putchar
zune
signal-handling

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