KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > samples > solitaire > optimization > OptimizingAC


1 package org.objectweb.jac.samples.solitaire.optimization;
2
3 import org.objectweb.jac.core.*;
4 import org.objectweb.jac.samples.solitaire.*;
5 import org.objectweb.jac.lib.java.util.Vector;
6
7 public class OptimizingAC extends AspectComponent {
8
9    // static public int count = 0;
10

11    public void whenUsingNewInstance() {
12
13       OptimizingWrapper optw = null;
14       
15       if ( wrappee() instanceof Vector ) {
16          //System.out.println( "Wrapping " + wrappee() );
17
wrappee().wrap( new OptimizingWrapper(), "cleanEquivalentConfigs", "add" );
18          //wrappee().wrap( new OptimizingWrapper(), "cleanEquivalentConfigs", "addAll" );
19
}
20       if ( wrappee() instanceof Configuration ) {
21       }
22
23    }
24    
25 }
26
Popular Tags