package test.basic; import javax.swing.*; import jasco.runtime.aspect.*; class cflowClass { hook cflowtest { private String test = "CFLOWEXECUTING : "; cflowtest(method(..args), excluded(..args)) { execution(method) && !cflow(excluded); } public void setPrintString(String text) { test=text; } before() { System.out.println(test+thisJoinPoint.getName()+" IN "+thisJoinPoint.getClassName()); } /* around() { System.out.println("replaced"); return null; }*/ public void globalPropertyChangeEvent(HookPropertyChangeEvent event) { try{ System.out.println(event.getPropertyType()+"|"+event.getValue()); if(event.getPropertyType() == HookPropertyChangeEvent.IS_ENABLED && event.getBooleanValue()) System.out.println("isEnabled"); } catch(Exception ex) {System.err.println(ex);} } isApplicable() { return true; } } }