Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.debug
Class ModuleTracker

java.lang.Object
  extended by 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

Constructor Summary
ModuleTracker(ModuleImpl module)
           
 
Method Summary
static void flushSkinCache(ModuleImpl module)
          Flush the skin cache for the given module.
static void flushTypeCache(ModuleImpl module)
          Flush the type cache of a module.
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleTracker

public ModuleTracker(ModuleImpl module)
Method Detail

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 -

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.