![JAR search and dependency download from the Maven repository](/logo.png)
org.milyn.cdr.SmooksResourceConfigurationStore Maven / Gradle / Ivy
/*
Milyn - Copyright (C) 2006 - 2010
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License (version 2.1) as published by the Free Software
Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details:
http://www.gnu.org/licenses/lgpl.txt
*/
package org.milyn.cdr;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.milyn.assertion.AssertArgument;
import org.milyn.cdr.annotation.Configurator;
import org.milyn.cdr.xpath.SelectorStep;
import org.milyn.classpath.ClasspathUtils;
import org.milyn.container.ApplicationContext;
import org.milyn.container.ApplicationContextInitializer;
import org.milyn.container.standalone.StandaloneApplicationContext;
import org.milyn.delivery.ContentHandler;
import org.milyn.delivery.ContentHandlerFactory;
import org.milyn.delivery.JavaContentHandlerFactory;
import org.milyn.delivery.UnsupportedContentHandlerTypeException;
import org.milyn.delivery.annotation.Resource;
import org.milyn.profile.ProfileSet;
import org.milyn.profile.ProfileStore;
import org.milyn.resource.ContainerResourceLocator;
import org.milyn.util.ClassUtil;
import org.milyn.javabean.DataDecoder;
import org.milyn.Smooks;
import org.milyn.xml.NamespaceMappings;
import org.xml.sax.SAXException;
import org.jaxen.saxpath.SAXPathException;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Constructor;
import java.net.URISyntaxException;
import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
/**
* {@link org.milyn.cdr.SmooksResourceConfiguration} context store.
*
* Stores the {@link org.milyn.cdr.SmooksResourceConfiguration SmooksResourceConfigurations}
* for a given container context in the form of
* {@link org.milyn.cdr.SmooksResourceConfigurationList} entries. Also maintains
* a "default" config list for the context.
* @author tfennelly
*/
public class SmooksResourceConfigurationStore {
private static List> handlerFactories = ClassUtil.getClasses("META-INF/content-handlers.inf", ContentHandlerFactory.class);
/**
* Logger.
*/
private static Log logger = LogFactory.getLog(SmooksResourceConfigurationStore.class);
/**
* Table of loaded SmooksResourceConfigurationList objects.
*/
private List configLists = new ArrayList();
/**
* A complete list of all the that have been initialized and added to this store.
* This has been transformed into a CopyOnWriteArrayList to fix http://jira.codehaus.org/browse/MILYN-381
*/
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy