* @param propertyFactory the StAXPropertyFactory to be used for parsing Property values
* @param introspector the Introspector to be used to inspect component implementations
* @return a new StAX XML loader
*/
public LoaderRegistry createLoader(PropertyObjectFactory propertyFactory, Introspector introspector) {
LoaderRegistryImpl loaderRegistry =
new LoaderRegistryImpl(monitorFactory.getMonitor(LoaderRegistryImpl.Monitor.class));
// register component type loaders
loaderRegistry.registerLoader(SystemImplementation.class,
new SystemComponentTypeLoader(introspector));
loaderRegistry.registerLoader(SystemCompositeImplementation.class,
new SystemCompositeComponentTypeLoader(loaderRegistry));
// register element loaders
registerLoader(loaderRegistry, new ComponentLoader(loaderRegistry, propertyFactory));
registerLoader(loaderRegistry, new ComponentTypeElementLoader(loaderRegistry));