Geomajas Community Documentation

4.1. Face and plug-in registration

Plug-ins (which include faces) are automatically discovered when available on the classpath. This is done using two files: META-INF/geomajasContext.xml and META-INF/geomajasWebContext.xml.

The geomajasContext.xml file contains information about the plug-in, the dependencies for the plug-in (which are checked when the application context is built, assuring that the set of plug-ins is complete and can be combined) and contains copyright and license information for the plug-in and its dependencies. Additional beans and services can also be defined.

The geomajasWebContext.xml file is provided to allow additional endpoints to be added in the web tier. Geomajas normally installs a DispatcherServlet in the web.xml file to allow additional web endpoints to be added using Spring MVC.