public class DevFrameworkBootstrap extends FrameworkBootstrap implements DevBundlesManager
Modifier and Type | Field and Description |
---|---|
protected Timer |
bundlesCheck |
protected boolean |
compatHotReload |
protected static String |
DEV_BUNDLES_CP |
static String |
DEV_BUNDLES_NAME |
protected DevBundle[] |
devBundles |
protected File |
devBundlesFile |
protected long |
lastModified |
protected org.apache.commons.logging.Log |
log |
protected ReloadServiceInvoker |
reloadServiceInvoker |
protected File |
seamdev |
static String |
USE_COMPAT_HOT_RELOAD |
static String |
WEB_RESOURCES_NAME |
protected File |
webclasses |
DEFAULT_BUNDLES_CP, DEFAULT_LIBS_CP, env, flushCache, frameworkLoaderClass, home, loader, scanForNestedJars, startTime
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 and Description |
---|
DevFrameworkBootstrap(MutableClassLoader cl,
File home) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearClassLoader()
Deprecated.
since 9.3 not needed anymore, here for backward compatibility, see
compatHotReload |
DevBundle[] |
getDevBundles() |
String |
getDevBundlesLocation() |
protected void |
initializeEnvironment() |
protected void |
installNewClassLoader(DevBundle[] bundles)
Deprecated.
since 9.3 not needed anymore, here for backward compatibility, see
compatHotReload |
void |
installResourceBundleFragments(List<File> files)
Deprecated.
since 9.3 not needed anymore, here for backward compatibility, see
compatHotReload |
void |
installSeamClasses(File[] dirs)
Deprecated.
since 9.3 not needed anymore, here for backward compatibility, see
compatHotReload |
boolean |
isTimerRunning() |
void |
loadDevBundles() |
protected void |
postloadDevBundles()
Deprecated.
since 9.3, we now have a new mechanism to hot reload bundles from
devBundlesFile . The new
mechanism copies bundles to nxserver/bundles, so it's now useless to postload dev bundles as they're
deployed as a regular bundle. |
protected void |
preloadDevBundles()
Deprecated.
since 9.3, we now have a new mechanism to hot reload bundles from
devBundlesFile . The new
mechanism copies bundles to nxserver/bundles, so it's now useless to preload dev bundles as they're
deployed as a regular bundle. |
protected void |
reloadDevBundles(DevBundle[] bundles) |
void |
resetDevBundles(String path) |
protected static String |
resourceBundleName(File file)
Deprecated.
since 9.3 not needed anymore, here for backward compatibility, see
compatHotReload |
void |
start(MutableClassLoader cl) |
void |
stop(MutableClassLoader cl) |
void |
toggleTimer() |
void |
writeComponentIndex() |
protected void |
writeDevBundles(DevBundle[] devBundles)
Writes to the
devBundlesFile the input devBundles by replacing the former file. |
protected Path |
zipDirectory(Path source,
Path target,
CopyOption... options)
Zips recursively the content of
source to the target zip file. |
buildBundlesClassPath, buildClassPath, buildLibsClassPath, copyFile, copyToFile, copyTree, deleteAll, env, extractNestedJar, extractNestedJars, extractNestedJars, findFileStartingWidth, getClassLoader, getHome, getLoader, initialize, installBundle, newFile, printStartedMessage, setDevMode, setDoPreprocessing, setFlushCache, setHostName, setHostVersion, setScanForNestedJars, uninstallBundle
public static final String DEV_BUNDLES_NAME
public static final String WEB_RESOURCES_NAME
public static final String USE_COMPAT_HOT_RELOAD
protected static final String DEV_BUNDLES_CP
protected final org.apache.commons.logging.Log log
protected DevBundle[] devBundles
protected Timer bundlesCheck
protected long lastModified
protected ReloadServiceInvoker reloadServiceInvoker
protected File devBundlesFile
protected final File webclasses
protected boolean compatHotReload
public DevFrameworkBootstrap(MutableClassLoader cl, File home) throws IOException
IOException
public void start(MutableClassLoader cl) throws ReflectiveOperationException, IOException, JMException
start
in class FrameworkBootstrap
ReflectiveOperationException
IOException
JMException
protected void initializeEnvironment() throws IOException
initializeEnvironment
in class FrameworkBootstrap
IOException
public void toggleTimer()
toggleTimer
in interface DevBundlesManager
public boolean isTimerRunning()
isTimerRunning
in interface DevBundlesManager
public void stop(MutableClassLoader cl) throws ReflectiveOperationException, JMException
stop
in class FrameworkBootstrap
ReflectiveOperationException
JMException
public String getDevBundlesLocation()
getDevBundlesLocation
in interface DevBundlesManager
@Deprecated protected void preloadDevBundles() throws IOException
devBundlesFile
. The new
mechanism copies bundles to nxserver/bundles, so it's now useless to preload dev bundles as they're
deployed as a regular bundle.IOException
@Deprecated protected void postloadDevBundles() throws ReflectiveOperationException
devBundlesFile
. The new
mechanism copies bundles to nxserver/bundles, so it's now useless to postload dev bundles as they're
deployed as a regular bundle.ReflectiveOperationException
public void loadDevBundles()
loadDevBundles
in interface DevBundlesManager
public void resetDevBundles(String path)
resetDevBundles
in interface DevBundlesManager
public DevBundle[] getDevBundles()
getDevBundles
in interface DevBundlesManager
protected void reloadDevBundles(DevBundle[] bundles) throws ReflectiveOperationException, IOException
protected void writeDevBundles(DevBundle[] devBundles) throws IOException
devBundlesFile
the input devBundles
by replacing the former file.
This method will toggle
the file update check timer if needed.IOException
protected Path zipDirectory(Path source, Path target, CopyOption... options) throws IOException
source
to the target
zip file.IOException
@Deprecated protected void clearClassLoader()
compatHotReload
@Deprecated protected void installNewClassLoader(DevBundle[] bundles)
compatHotReload
public void writeComponentIndex()
@Deprecated public void installSeamClasses(File[] dirs) throws IOException
compatHotReload
IOException
@Deprecated public void installResourceBundleFragments(List<File> files) throws IOException
compatHotReload
IOException
@Deprecated protected static String resourceBundleName(File file)
compatHotReload
Copyright © 2018 Nuxeo. All rights reserved.