All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dynamicextensionsalfresco.blueprint.CompositeNamespaceHandlerResolver Maven / Gradle / Ivy

Go to download

Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features

There is a newer version: 2.1.4
Show newest version
package com.github.dynamicextensionsalfresco.blueprint;

import org.springframework.beans.factory.xml.NamespaceHandler;
import org.springframework.beans.factory.xml.NamespaceHandlerResolver;

/**
 * {@link NamespaceHandlerResolver} for internal use by {@link DynamicExtensionsApplicationContextBase}
 * 
 * @author Laurens Fridael
 * 
 */
class CompositeNamespaceHandlerResolver implements NamespaceHandlerResolver {

	private final NamespaceHandlerResolver[] resolvers;

	CompositeNamespaceHandlerResolver(final NamespaceHandlerResolver... namespaceHandlerResolvers) {
		this.resolvers = namespaceHandlerResolvers;
	}

	@Override
	public NamespaceHandler resolve(final String namespaceUri) {
		for (final NamespaceHandlerResolver resolver : resolvers) {
			final NamespaceHandler handler = resolver.resolve(namespaceUri);
			if (handler != null) {
				return handler;
			}
		}
		return null;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy