Skip to content

Configuring XDI messaging container factories

Markus Sabadello edited this page Feb 6, 2017 · 1 revision

The xdi2-server component uses its configuration files to configure XDI messaging container factories, which can be used to dynamically create messaging containers at runtime.

Spring Beans

The Java Spring Framework and its Inversion of Control principles are used to configure the messaging container factories.

Every Spring bean in the WEB-INF/applicationContext.xml whose name starts with a slash ('/') and ends with a '/*' is expected to be a messaging container factory. The bean name becomes the relative path at which the messaging container factory is "mounted". The path also becomes the root for the messaging containers that are instantiated by the messaging container factory.

Many important classes of the XDI2 library are compatible with the Spring bean mechanism, for example implementations of the GraphFactory and Graph interfaces.

Clone this wiki locally