org.nuxeo.ecm.webengine.debug
Class ModuleTracker
java.lang.Object
org.nuxeo.ecm.webengine.debug.ModuleTracker
- All Implemented Interfaces:
- Runnable
public class ModuleTracker
- extends Object
- implements Runnable
The default module tracker is tracking any file in a web module for changes.
If a change is detected it is invalidating WebEngine. (see setDirty). In dev.
mode the servlet is checking at each request if WebEngine is dirty and reload
all JAX-RS applications.
You should override the doRun()
method of this class and implement a
fine grained check if you want to check only some modifications. Also you
need to update ModuleImpl.getTracker()
to instantiate your tracker
(you can use the value of nuxeo.dev.mode to test if your tracker is needed)
- Author:
- Bogdan Stefanescu
ModuleTracker
public ModuleTracker(ModuleImpl module)
run
public void run()
- Specified by:
run
in interface Runnable
flushTypeCache
public static void flushTypeCache(ModuleImpl module)
- Flush the type cache of a module. This will flush all modules type cache
since some modules may be dependent on this one. TODO: optimize this
- Parameters:
module
-
flushSkinCache
public static void flushSkinCache(ModuleImpl module)
- Flush the skin cache for the given module. Note that all modules skin
cache will be flushed since they may depend on this module skins. TODO:
optimize this
- Parameters:
module
-
Copyright © 2011 Nuxeo SAS. All Rights Reserved.