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
FieldsModifier and TypeFieldDescriptionprotected Timerprotected static final Stringstatic final Stringprotected DevBundle[]protected Fileprotected longprotected ReloadServiceInvokerprotected final Filestatic final Stringprotected final FileFields inherited from class org.nuxeo.osgi.application.FrameworkBootstrap
DEFAULT_BUNDLES_CP, DEFAULT_LIBS_CP, env, flushCache, frameworkLoaderClass, home, loader, scanForNestedJars, startTimeFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanvoidprotected voidreloadDevBundles(DevBundle[] bundles) voidresetDevBundles(String path) voidvoidvoidvoidprotected voidwriteDevBundles(DevBundle[] devBundles) Writes to thedevBundlesFilethe inputdevBundlesby 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:
startin classFrameworkBootstrap- Throws:
ReflectiveOperationExceptionIOExceptionJMException
-
initializeEnvironment
- Overrides:
initializeEnvironmentin classFrameworkBootstrap- Throws:
IOException
-
toggleTimer
public void toggleTimer()- Specified by:
toggleTimerin interfaceDevBundlesManager
-
isTimerRunning
public boolean isTimerRunning()- Specified by:
isTimerRunningin interfaceDevBundlesManager
-
stop
- Overrides:
stopin classFrameworkBootstrap- Throws:
ReflectiveOperationExceptionJMException
-
getDevBundlesLocation
- Specified by:
getDevBundlesLocationin interfaceDevBundlesManager
-
loadDevBundles
public void loadDevBundles()- Specified by:
loadDevBundlesin interfaceDevBundlesManager
-
resetDevBundles
- Specified by:
resetDevBundlesin interfaceDevBundlesManager
-
getDevBundles
- Specified by:
getDevBundlesin interfaceDevBundlesManager
-
reloadDevBundles
protected void reloadDevBundles(DevBundle[] bundles) throws ReflectiveOperationException, IOException -
writeDevBundles
Writes to thedevBundlesFilethe inputdevBundlesby replacing the former file.This method will
togglethe file update check timer if needed.- Throws:
IOException- Since:
- 9.3
-
writeComponentIndex
public void writeComponentIndex()
-