FileSystemAwareUIHttpContext¶
-
public class
FileSystemAwareUIHttpContext
extends UiHttpContext¶ An extension of the
org.motechproject.osgi.web.ext.UiHttpContext
. This class will be used in development mode for bundles that are configured to load their resources from the hard drive directly, not the jar classpath. The idea is to allow rapid UI development, changes to static html/css/js files will be reflected directly on the UI right after changes are made. If this context fails to load a resource from disk, it will fall back to loading from classpath. This context is a decorator, that decorates the HTTP context coming from Felix.See also:
org.motechproject.osgi.web.ext.ApplicationEnvironment
Constructors¶
FileSystemAwareUIHttpContext¶
-
public
FileSystemAwareUIHttpContext
(HttpContext context, String resourceRootDirectoryPath)¶ Creates a new instance by decorating the given HTTP context.
Parameters: - context – the context to decorate
- resourceRootDirectoryPath – the root path from which this context should attempt to read resources