package mypackage;

import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;

public class CallerInterceptor {

	UserService service; 
	public CallerInterceptor() {
		super();
		service = ServiceLocator.getInstance().getUserService();
		System.out.println("In caller");
	}
	
	@AroundInvoke
	public Object filter(InvocationContext ic) throws Exception {
		 userService.target();
		return ic.proceed();
	}
}
