// SimpleTarget s = new SimpleTarget();
// System.out.println( "annotation present: "
// + SimpleTarget.class.isAnnotationPresent( OnLoadMixIn.class ) );
// MyCallAspect a = new MyCallAspect();
PointcutFactory factory = new PointcutFactory();
factory.
addModifierList( Modifier.PUBLIC ).
addModifierList( Modifier.PRIVATE ).
addReturnType( long.class ).
// addDeclaringClass( SimpleTarget.class ).
addMethodName( "doIt" ).
addParamTypeList( new Class[] { double.class, int.class, long.class, boolean[].class } ).
addParamTypeList( new Class[] { double.class, ArrayList.class } );
AspectAgent.install(
SimpleTarget.class.getPackage(),
MyCallAspect.class, factory.getPattern(), WeaveType.CALL );
// a.installAroundCall( SimpleTarget.class, factory.getPattern() );
SimpleTarget s = new SimpleTarget();
s.catchMe( "arg1" );