package pathfinder;
/**
 * Implementation of Cuckoo Egg design pattern
 */
public aspect ClassSwitcher {
	public pointcut oldClassConstructor( ) :
		call(Display.new( )) &&
		Regions.WithinMyApplication()&& 
		!Regions.WithinTesting();
		
	Object around( ) : oldClassConstructor( ){ 
		return new pathfinder.Display2( );
	}
}
	
