railo.loader.engine
Class CFMLEngineFactory

java.lang.Object
  extended by railo.loader.engine.CFMLEngineFactory

public class CFMLEngineFactory
extends Object

Factory to load CFML Engine


Method Summary
static File getClassLoaderRoot(ClassLoader cl)
          returns the path where the classloader ist located
 String[] getInstalledPatches()
           
static CFMLEngine getInstance()
          returns instance of this factory (singelton-> always the same instance) do auto update when changes occur
static CFMLEngine getInstance(javax.servlet.ServletConfig config)
          returns instance of this factory (singelton-> always the same instance) do auto update when changes occur
static CFMLEngine getInstance(javax.servlet.ServletConfig config, EngineChangeListener listener)
          returns instance of this factory (singelton-> always the same instance)
 File getResourceRoot()
          return directory to railo resource root
 void log(Object obj)
          log info to output
static void registerInstance(CFMLEngine engine)
          used only for internal usage
 boolean removeLatestUpdate(String password)
          method to initalize a update of the CFML Engine.
 boolean removeUpdate(String password)
          method to initalize a update of the CFML Engine.
 boolean restart(String password)
          restart the cfml engine
 boolean restart(String configId, String password)
          restart the cfml engine
 void tlog(Object obj)
          log info to output
 boolean update(String password)
          method to initalize a update of the CFML Engine.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CFMLEngine getInstance(javax.servlet.ServletConfig config)
                              throws javax.servlet.ServletException
returns instance of this factory (singelton-> always the same instance) do auto update when changes occur

Parameters:
config -
Returns:
Singelton Instance of the Factory
Throws:
javax.servlet.ServletException

getInstance

public static CFMLEngine getInstance()
                              throws RuntimeException
returns instance of this factory (singelton-> always the same instance) do auto update when changes occur

Returns:
Singelton Instance of the Factory
Throws:
RuntimeException

registerInstance

public static void registerInstance(CFMLEngine engine)
                             throws RuntimeException
used only for internal usage

Parameters:
engine -
Throws:
RuntimeException

getInstance

public static CFMLEngine getInstance(javax.servlet.ServletConfig config,
                                     EngineChangeListener listener)
                              throws javax.servlet.ServletException
returns instance of this factory (singelton-> always the same instance)

Parameters:
config -
listener -
Returns:
Singelton Instance of the Factory
Throws:
javax.servlet.ServletException

update

public boolean update(String password)
               throws IOException,
                      javax.servlet.ServletException
method to initalize a update of the CFML Engine. checks if there is a new Version and update it whwn a new version is available

Parameters:
password -
Returns:
has updated
Throws:
IOException
javax.servlet.ServletException

restart

public boolean restart(String password)
                throws IOException,
                       javax.servlet.ServletException
restart the cfml engine

Parameters:
password -
Returns:
has updated
Throws:
IOException
javax.servlet.ServletException

restart

public boolean restart(String configId,
                       String password)
                throws IOException,
                       javax.servlet.ServletException
restart the cfml engine

Parameters:
password -
Returns:
has updated
Throws:
IOException
javax.servlet.ServletException

removeUpdate

public boolean removeUpdate(String password)
                     throws IOException,
                            javax.servlet.ServletException
method to initalize a update of the CFML Engine. checks if there is a new Version and update it whwn a new version is available

Parameters:
password -
Returns:
has updated
Throws:
IOException
javax.servlet.ServletException

removeLatestUpdate

public boolean removeLatestUpdate(String password)
                           throws IOException,
                                  javax.servlet.ServletException
method to initalize a update of the CFML Engine. checks if there is a new Version and update it whwn a new version is available

Parameters:
password -
Returns:
has updated
Throws:
IOException
javax.servlet.ServletException

getInstalledPatches

public String[] getInstalledPatches()
                             throws javax.servlet.ServletException,
                                    IOException
Throws:
javax.servlet.ServletException
IOException

getResourceRoot

public File getResourceRoot()
                     throws IOException
return directory to railo resource root

Returns:
railo root directory
Throws:
IOException

getClassLoaderRoot

public static File getClassLoaderRoot(ClassLoader cl)
returns the path where the classloader ist located

Parameters:
cl - ClassLoader
Returns:
file of the classloader root

tlog

public void tlog(Object obj)
log info to output

Parameters:
obj - Object to output

log

public void log(Object obj)
log info to output

Parameters:
obj - Object to output


Copyright © 2012 Railo