com.github.dynamicextensionsalfresco.blueprint.CompositeNamespaceHandlerResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blueprint-integration-spring-3 Show documentation
Show all versions of blueprint-integration-spring-3 Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
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