Package lucee.loader.engine
Class CFMLEngineFactory
java.lang.Object
lucee.loader.engine.CFMLEngineFactorySupport
lucee.loader.engine.CFMLEngineFactory
Factory to load CFML Engine
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.servlet.ServletConfig
static final org.osgi.framework.Version
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic File
_extractCoreIfLoader
(File file) static File
downloadBundle
(String symbolicName, String symbolicVersion, Identification id) static File
extractCoreIfLoader
(File file) static File
returns the path where the classloader is locatedorg.apache.felix.framework.Felix
String[]
static CFMLEngine
returns instance of this factory (singelton = always the same instance) do auto update when changes occurstatic CFMLEngine
getInstance
(javax.servlet.ServletConfig config) returns instance of this factory (singelton = always the same instance) do auto update when changes occurstatic CFMLEngine
getInstance
(javax.servlet.ServletConfig config, EngineChangeListener listener) returns instance of this factory (singelton always the same instance)org.apache.felix.framework.Logger
return directory to lucee resource rootprotected static String
getSystemPropOrEnvVar
(String name, String defaultValue) void
void
static void
static void
registerInstance
(CFMLEngine engine) boolean
removeLatestUpdate
(Password password) method to initialize an update of the CFML Engine.boolean
removeUpdate
(Password password) method to initialize an update of the CFML Engine.boolean
boolean
void
boolean
update
(Password password, Identification id) Deprecated.Methods inherited from class lucee.loader.engine.CFMLEngineFactorySupport
closeEL, closeEL, copy, getClassLoaderDirectory, getHomeDirectory, getSystemDirectory, getTempDirectory, parsePlaceHolder, removeQuotes, toString, toVersion
-
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
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
-
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 configlistener
- 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
- Throws:
IOException
-
createBundleFromSource
- 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
-
log
-
log
-
update
@Deprecated public boolean update(Password password, Identification id) throws IOException, javax.servlet.ServletException Deprecated.- Throws:
IOException
javax.servlet.ServletException
-
restart
- 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
-
_extractCoreIfLoader
- Throws:
IOException
-
getUpdateLocation
- Throws:
MalformedURLException
-
removeUpdate
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 exceptionjavax.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 exceptionjavax.servlet.ServletException
- servlet exception
-
getInstalledPatches
- Throws:
javax.servlet.ServletException
IOException
-
getPatchDirectory
- Throws:
IOException
-
getBundleDirectory
- Throws:
IOException
-
getFelixCacheDirectory
- Throws:
IOException
-
getResourceRoot
return directory to lucee resource root- Returns:
- lucee root directory
- Throws:
IOException
- exception thrown
-
getClassLoaderRoot
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()
-