// simply all
// new PrintoutAspect().installAroundExecution(
// MultipleTargets.class, new JoinpointPatternFactory().getPattern() );
MultipleTargets mt = new MultipleTargets();
mt.trycatch( "test string" );
mt.trycatch( null );
mt.conv( new Integer( 7 ) );
// mt.setD( 5.0, "test string" );
mt.objectGetter();
mt.simpleGetter();
mt.setB( true );
MultipleTargets.getClassName();
try {
mt.iamthrowing(new boolean[] {true});
}
catch( Throwable t ) {
System.out.println( "rethrowed: " + t );
}
AspectAgent.deinstall( MultipleTargets.class, PrintoutAspect.class );
mt.trycatch( "test string" );
mt.trycatch( null );
mt.conv( new Integer( 7 ) );
mt.setD( 5.0, "test string" );
mt.objectGetter();
mt.simpleGetter();
mt.setB( true );
MultipleTargets.getClassName();
try {
mt.iamthrowing( new boolean[] {true});
}
catch( Throwable t ) {
System.out.println( "without aspect: " + t );
}