001 package com.intergral.fusiondebug.server; 002 003 import railo.loader.engine.CFMLEngineFactory; 004 005 006 /** 007 * 008 */ 009 public class FDControllerFactory { 010 011 public static long complete = 0; 012 013 // make sure FD see this class 014 static { 015 try{ 016 Class.forName( "com.intergral.fusiondebug.server.FDSignalException" ); 017 } 018 catch(Throwable t){ 019 t.printStackTrace(); 020 } 021 } 022 023 024 /** 025 * Constructor of the class 026 * should never be invoked but still public to be shure that we do not run into problems 027 */ 028 public FDControllerFactory(){} 029 030 public static void notifyPageComplete() { 031 complete++; 032 } 033 034 /** 035 * returns a singelton instance of the class 036 * @return singelton instance 037 */ 038 public static Object getInstance(){ 039 return CFMLEngineFactory.getInstance().getFDController(); 040 } 041 042 /** 043 * makes the class visible for the FD Client 044 */ 045 public static void makeVisible() { 046 // this method does nothing, only make this class visible for the FD Client 047 } 048 049 050 051 052 }