摘要 |
<p>A method for installing a web package, comprising:
a) providing a file system by an operation system running the MES;
b) providing a virtual file system within the MES;
c) incorporating a virtual path provider class within the MES in order to implement the virtual file system for Web applications;
d) running a virtual path provider to supply contents of enable/installed web packages to the virtual file system and building a name structure that maps virtual url with content details before a new web package is going to be installed;
e) for each resource to be processed and comprised in a new web package to be installed checking whether the resource name already exists in the name structure;
f) installing the resource in case of an absence of a name conflict or applying a prefix for the entire resources of the web package to be installed and storing the name and the prefix to the virtual file system; and
g) when a resource is required by an web application checking in the structure whether the resource exists and in case the resource name comprises a prefix, opening the corresponding web package and retrieving the content of the resource by its physical name. This method enables the administration of resources (content) in web packages. By automatically adding a prefix to the resource name causing the name conflict, even resources having the same name can be handled when installing a new web package by the virtual file system mapping the resources to which a prefix has been added to the physical content required for the web application.</p> |