23 lines
No EOL
991 B
Text
23 lines
No EOL
991 B
Text
package com.aspectj.syntax;
|
|
import org.aspectj.lang.annotation.AdviceName;
|
|
|
|
privileged public aspect LoggingAspect percflowbelow(ajia.services.*){
|
|
private pointcut getResult() : call(* *(..) throws SQLException) && args(Account, .., int);
|
|
@AdviceName("CheckValidEmail")
|
|
before (Customer hu) : getResult(hu){
|
|
System.out.println("Your mail address is valid!");
|
|
}
|
|
Object around() throws InsufficientBalanceException: getResult() && call(Customer.new(String,String,int,int,int)){
|
|
return proceed();
|
|
}
|
|
public Cache getCache() {
|
|
return this.cache;
|
|
}
|
|
pointcut beanPropertyChange(BeanSupport bean, Object newValue): execution(void BeanSupport+.set*(*)) && args(newValue) && this(bean);
|
|
declare parents: banking.entities.* implements BeanSupport;
|
|
declare warning : call(void TestSoftening.perform()): "Please ensure you are not calling this from an AWT thread";
|
|
private String Identifiable.id;
|
|
public void Identifiable.setId(String id) {
|
|
this.id = id;
|
|
}
|
|
} |