Lazy module loading
-------------------
Key: WEB-154
URL: http://jira.nuxeo.org/browse/WEB-154
Project: Nuxeo Web Engine
Issue Type: Improvement
Affects Versions: 1.0 RC
Reporter: Bogdan Stefanescu
Assignee: Bogdan Stefanescu
Priority: Critical
Fix For: 1.0 Final
Implement lazy module loading
This has multiple impacts on the model.
First the @WebModule annotation is removed.
WebModules are declared only through configuration (or extension points)
The idea is to avoid parsing and loading groovy classes at boot time when a
module is loaded.
This is considerably increasing the boot time and may generate dependency
errors like referencing java classes that are not yet present on the classpath
from groovy.
So a module is no more declared using @WebModule but through the module.xml
file.
In the module.xml file you must specify a path where the module is bound and a
root-type which is the type of the webobject used as the module entry point.
Example:
<module root-type="admin" path="/admin" extends="base" />
The root-type represent the WebObject type to use as the entry point ... so the
deprecated module objects must be rewritten as this:
deprecated:
@Path("/admin")
@WebModule(name="admin", ...)
class Main {
}
new definition:
@WebObject(type="admin", ...)
class Main {
}
MAKE sure that you remove the @Path annotation otherwise it will not work OK.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets