public class DevFrameworkBootstrap extends FrameworkBootstrap implements DevBundlesManager
| Modifier and Type | Field and Description |
|---|---|
protected Timer |
bundlesCheck |
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 |
WEB_RESOURCES_NAME |
protected File |
webclasses |
DEFAULT_BUNDLES_CP, DEFAULT_LIBS_CP, env, flushCache, frameworkLoaderClass, home, loader, scanForNestedJars, startTimeARGS, 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() |
DevBundle[] |
getDevBundles() |
String |
getDevBundlesLocation() |
protected void |
installNewClassLoader(DevBundle[] bundles) |
void |
installResourceBundleFragments(List<File> files) |
void |
installSeamClasses(File[] dirs) |
boolean |
isTimerRunning() |
void |
loadDevBundles() |
protected void |
postloadDevBundles() |
protected void |
preloadDevBundles()
Load the development bundles and libs if any in the classpath before starting the framework.
|
protected void |
reloadDevBundles(DevBundle[] bundles) |
void |
resetDevBundles(String path) |
protected static String |
resourceBundleName(File file) |
void |
start(MutableClassLoader cl) |
void |
stop(MutableClassLoader cl) |
void |
toggleTimer() |
void |
writeComponentIndex() |
buildBundlesClassPath, buildClassPath, buildLibsClassPath, copyFile, copyToFile, copyTree, deleteAll, env, extractNestedJar, extractNestedJars, extractNestedJars, findFileStartingWidth, getClassLoader, getHome, getLoader, initialize, initializeEnvironment, installBundle, newFile, printStartedMessage, setDevMode, setDoPreprocessing, setFlushCache, setHostName, setHostVersion, setScanForNestedJars, uninstallBundlepublic static final String DEV_BUNDLES_NAME
public static final String WEB_RESOURCES_NAME
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
public DevFrameworkBootstrap(MutableClassLoader cl, File home) throws IOException
IOExceptionpublic void start(MutableClassLoader cl) throws ReflectiveOperationException, IOException, JMException
start in class FrameworkBootstrapReflectiveOperationExceptionIOExceptionJMExceptionpublic void toggleTimer()
toggleTimer in interface DevBundlesManagerpublic boolean isTimerRunning()
isTimerRunning in interface DevBundlesManagerpublic void stop(MutableClassLoader cl) throws ReflectiveOperationException, JMException
stop in class FrameworkBootstrapReflectiveOperationExceptionJMExceptionpublic String getDevBundlesLocation()
getDevBundlesLocation in interface DevBundlesManagerprotected void preloadDevBundles() throws IOException
IOExceptionprotected void postloadDevBundles() throws ReflectiveOperationException
ReflectiveOperationExceptionpublic void loadDevBundles()
loadDevBundles in interface DevBundlesManagerpublic void resetDevBundles(String path)
resetDevBundles in interface DevBundlesManagerpublic DevBundle[] getDevBundles()
getDevBundles in interface DevBundlesManagerprotected void reloadDevBundles(DevBundle[] bundles) throws ReflectiveOperationException
ReflectiveOperationExceptionprotected void clearClassLoader()
protected void installNewClassLoader(DevBundle[] bundles)
public void writeComponentIndex()
public void installSeamClasses(File[] dirs) throws IOException
IOExceptionpublic void installResourceBundleFragments(List<File> files) throws IOException
IOExceptionprotected static String resourceBundleName(File file)
Copyright © 2017 Nuxeo. All rights reserved.