Examples of MultipleTargets


Examples of de.petris.dynamicaspects.test.targets.MultipleTargets

         
          // 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 );
          }
         
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.