Package org.nuxeo.runtime.tomcat.dev
Class DevFrameworkBootstrap
java.lang.Object
org.nuxeo.osgi.application.FrameworkBootstrap
org.nuxeo.runtime.tomcat.dev.DevFrameworkBootstrap
- All Implemented Interfaces:
LoaderConstants
,DevBundlesManager
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected Timer
protected static final String
static final String
protected DevBundle[]
protected File
protected long
protected ReloadServiceInvoker
protected final File
static final String
protected final File
Fields inherited from class org.nuxeo.osgi.application.FrameworkBootstrap
DEFAULT_BUNDLES_CP, DEFAULT_LIBS_CP, env, flushCache, frameworkLoaderClass, home, loader, scanForNestedJars, startTime
Fields inherited from interface org.nuxeo.osgi.application.LoaderConstants
ARGS, BUNDLES, CONFIG_DIR, DATA_DIR, DEVMODE, FLUSH_CACHE, HOME_DIR, HOST_NAME, HOST_VERSION, INSTALL_RELOAD_TIMER, LIBS, LOG_DIR, PREPROCESSING, SCAN_FOR_NESTED_JARS, TMP_DIR, WEB_DIR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
boolean
void
protected void
reloadDevBundles
(DevBundle[] bundles) void
resetDevBundles
(String path) void
void
void
void
protected void
writeDevBundles
(DevBundle[] devBundles) Writes to thedevBundlesFile
the inputdevBundles
by replacing the former file.Methods inherited from class org.nuxeo.osgi.application.FrameworkBootstrap
buildBundlesClassPath, buildClassPath, buildLibsClassPath, checkZipSlip, copyFile, copyToFile, copyTree, deleteAll, env, extractNestedJar, extractNestedJars, extractNestedJars, findFileStartingWidth, getClassLoader, getHome, getLoader, getZipEntryAsFile, initialize, installBundle, newFile, printStartedMessage, setDevMode, setDoPreprocessing, setFlushCache, setHostName, setHostVersion, setScanForNestedJars, uninstallBundle
-
Field Details
-
DEV_BUNDLES_NAME
- See Also:
-
WEB_RESOURCES_NAME
- See Also:
-
DEV_BUNDLES_CP
- See Also:
-
devBundles
-
bundlesCheck
-
lastModified
protected long lastModified -
reloadServiceInvoker
-
devBundlesFile
-
seamdev
-
webclasses
-
-
Constructor Details
-
DevFrameworkBootstrap
- Throws:
IOException
-
-
Method Details
-
start
public void start(MutableClassLoader cl) throws ReflectiveOperationException, IOException, JMException - Overrides:
start
in classFrameworkBootstrap
- Throws:
ReflectiveOperationException
IOException
JMException
-
initializeEnvironment
- Overrides:
initializeEnvironment
in classFrameworkBootstrap
- Throws:
IOException
-
toggleTimer
public void toggleTimer()- Specified by:
toggleTimer
in interfaceDevBundlesManager
-
isTimerRunning
public boolean isTimerRunning()- Specified by:
isTimerRunning
in interfaceDevBundlesManager
-
stop
- Overrides:
stop
in classFrameworkBootstrap
- Throws:
ReflectiveOperationException
JMException
-
getDevBundlesLocation
- Specified by:
getDevBundlesLocation
in interfaceDevBundlesManager
-
loadDevBundles
public void loadDevBundles()- Specified by:
loadDevBundles
in interfaceDevBundlesManager
-
resetDevBundles
- Specified by:
resetDevBundles
in interfaceDevBundlesManager
-
getDevBundles
- Specified by:
getDevBundles
in interfaceDevBundlesManager
-
reloadDevBundles
protected void reloadDevBundles(DevBundle[] bundles) throws ReflectiveOperationException, IOException -
writeDevBundles
Writes to thedevBundlesFile
the inputdevBundles
by replacing the former file.This method will
toggle
the file update check timer if needed.- Throws:
IOException
- Since:
- 9.3
-
writeComponentIndex
public void writeComponentIndex()
-