public class ModulesRegister extends Object
ModuleRegistrationServlet.ModuleRegistrationServlet| Constructor and Description | 
|---|
| ModulesRegister() | 
| Modifier and Type | Method and Description | 
|---|---|
| static List<com.onwbp.base.schema.definition.TNode> | getDependentModuleNames(ServletContext aServletContext)Deprecated. 
 Since 5.7.0, this method returns an empty list. | 
| static boolean | registerDirectory(File aModuleDirectory)Registers a new module whose root is at the specified directory. | 
| static boolean | registerDirectoryIfModule(File aModuleDirectory)Registers a new module whose root is at the specified directory. | 
| static boolean | registerWebApp(Servlet aServlet,
              ServletConfig aServletConfig)Deprecated. 
 Since 5.9.0, this method is replaced by  ModuleRegistrationListener. | 
| static void | unregisterWebApp(Servlet aServlet,
                ServletConfig aServletConfig)Deprecated. 
 Since 5.9.0, this method is replaced by  ModuleRegistrationListener. | 
public static boolean registerDirectoryIfModule(File aModuleDirectory) throws ModuleDefinitionException
A directory is identified as a module if, and only if, the file '/WEB-INF/ebx/module.xml' is defined under this directory.
aModuleDirectory - the module directory to registertrue if registration has succeeded, false if
         registration has failed because a module with same name has been already registered.ModuleDefinitionException - if file '/WEB-INF/ebx/module.xml' is defined but  it cannot be read
                                   properly (this event is also added as an error to 'kernel' logs).public static boolean registerDirectory(File aModuleDirectory) throws ModuleDefinitionException
 Requires the file /WEB-INF/ebx/module.xml to be defined under this directory.
aModuleDirectory - the module directory to registertrue if registration has succeeded. Returns false if
         registration has failed because a module with same name has been already registered.ModuleDefinitionException - if file '/WEB-INF/ebx/module.xml' is not defined or  if it cannot be
                                   read
                                   properly (this event is also added as an error to 'kernel' logs).public static List<com.onwbp.base.schema.definition.TNode> getDependentModuleNames(ServletContext aServletContext) throws ModuleDefinitionException
ModuleDefinitionException@Deprecated public static boolean registerWebApp(Servlet aServlet, ServletConfig aServletConfig) throws ModuleDefinitionException
ModuleRegistrationListener.
 This method must be called by the method Servlet.init().
 
The file '/WEB-INF/ebx/module.xml' in the corresponding web application defines the module name and other basic module features.
 If the web application defines some specific module classes (like ServiceInstaller),
 the Servlet provided must have been loaded by the web application itself (that
 is , it must be in '/WEB-INF/classes/' or in '/WEB-INF/lib/*.jar').
 
aServlet - the Java Servlet APIaServletConfig - the servlet's configuration and initialization parameterstrue as registration has succeeded.ModuleDefinitionException - if file '/WEB-INF/ebx/module.xml' is not defined by the web application, or if
                                   it
                                   cannot be read properly (this event is also added as an error to 'kernel'
                                   logs).unregisterWebApp(Servlet, ServletConfig), 
Servlet.init(javax.servlet.ServletConfig)@Deprecated public static void unregisterWebApp(Servlet aServlet, ServletConfig aServletConfig)
ModuleRegistrationListener.registerWebApp().
 
 This method must be called by the method Servlet.destroy().
 
aServlet - the Java Servlet APIaServletConfig - the servlet's configuration and initialization parametersModuleDefinitionException - if file '/WEB-INF/ebx/module.xml' is not defined by
                                   the web application, or if it cannot be read properly
                                   (this event is also added as an error to 'kernel' logs).registerWebApp(Servlet, ServletConfig), 
Servlet.destroy()