Class CFMLEngineFactory

java.lang.Object
lucee.loader.engine.CFMLEngineFactorySupport
lucee.loader.engine.CFMLEngineFactory

public class CFMLEngineFactory extends CFMLEngineFactorySupport
Factory to load CFML Engine
  • Field Details

    • VERSION_ZERO

      public static final org.osgi.framework.Version VERSION_ZERO
    • config

      protected javax.servlet.ServletConfig config
  • Constructor Details

    • CFMLEngineFactory

      protected CFMLEngineFactory(javax.servlet.ServletConfig config)
  • Method Details

    • 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 - servlet config
      Returns:
      Singelton Instance of the Factory
      Throws:
      javax.servlet.ServletException - servlet exception
    • 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 - runtime exception
    • registerInstance

      public static void registerInstance(CFMLEngine engine)
    • 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 - servlet config
      listener - listener
      Returns:
      Singelton Instance of the Factory
      Throws:
      javax.servlet.ServletException - servlet exception
    • shutdownFelix

      public void shutdownFelix() throws org.osgi.framework.BundleException
      Throws:
      org.osgi.framework.BundleException
    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException
    • createBundleFromSource

      public static File createBundleFromSource() throws IOException
      Throws:
      IOException
    • getFelix

      public org.apache.felix.framework.Felix getFelix(File cacheRootDir, Map<String,Object> config) throws org.osgi.framework.BundleException
      Throws:
      org.osgi.framework.BundleException
    • getSystemPropOrEnvVar

      protected static String getSystemPropOrEnvVar(String name, String defaultValue)
    • log

      public void log(Throwable t)
    • log

      public void log(int level, String msg)
    • update

      @Deprecated public boolean update(Password password, Identification id) throws IOException, javax.servlet.ServletException
      Deprecated.
      Throws:
      IOException
      javax.servlet.ServletException
    • restart

      public boolean restart(Password password) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException
    • restart

      public boolean restart(String configId, Password password) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException
    • downloadBundle

      public File downloadBundle(String symbolicName, String symbolicVersion, Identification id) throws IOException
      Throws:
      IOException
    • extractCoreIfLoader

      public static File extractCoreIfLoader(File file)
    • _extractCoreIfLoader

      public static File _extractCoreIfLoader(File file) throws IOException
      Throws:
      IOException
    • getUpdateLocation

      public URL getUpdateLocation() throws MalformedURLException
      Throws:
      MalformedURLException
    • removeUpdate

      public boolean removeUpdate(Password password) throws IOException, javax.servlet.ServletException
      method to initialize an update of the CFML Engine. checks if there is a new Version and update it when a new version is available
      Parameters:
      password - password
      Returns:
      has updated
      Throws:
      IOException - io exception
      javax.servlet.ServletException - servlet exception
    • removeLatestUpdate

      public boolean removeLatestUpdate(Password password) throws IOException, javax.servlet.ServletException
      method to initialize an update of the CFML Engine. checks if there is a new Version and update it when a new version is available
      Parameters:
      password - password for lucee
      Returns:
      has updated
      Throws:
      IOException - io exception
      javax.servlet.ServletException - servlet exception
    • getInstalledPatches

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

      public File getPatchDirectory() throws IOException
      Throws:
      IOException
    • getBundleDirectory

      public File getBundleDirectory() throws IOException
      Throws:
      IOException
    • getFelixCacheDirectory

      public File getFelixCacheDirectory() throws IOException
      Throws:
      IOException
    • getResourceRoot

      public File getResourceRoot() throws IOException
      return directory to lucee resource root
      Returns:
      lucee root directory
      Throws:
      IOException - exception thrown
    • getClassLoaderRoot

      public static File getClassLoaderRoot(ClassLoader cl)
      returns the path where the classloader is located
      Parameters:
      cl - ClassLoader
      Returns:
      file of the classloader root
    • getLogger

      public org.apache.felix.framework.Logger getLogger()