Examples of ClassLoaderReference


Examples of com.thoughtworks.xstream.core.util.ClassLoaderReference

        if (reflectionProvider == null) {
            reflectionProvider = jvm.bestReflectionProvider();
        }
        this.reflectionProvider = reflectionProvider;
        this.hierarchicalStreamDriver = driver;
        this.classLoaderReference = new ClassLoaderReference(new CompositeClassLoader());
        this.mapper = mapper == null ? buildMapper(true) : mapper;
        this.converterLookup = new DefaultConverterLookup(this.mapper);

        setupMappers();
        setupAliases();
View Full Code Here

Examples of com.thoughtworks.xstream.core.util.ClassLoaderReference

     * @throws InitializationException in case of an initialization problem
     * @deprecated since 1.3, use {@link #XStream(ReflectionProvider, HierarchicalStreamDriver, Mapper, ClassLoader)} instead
     */
    public XStream(
            ReflectionProvider reflectionProvider, Mapper mapper, HierarchicalStreamDriver driver) {
        this(reflectionProvider, driver, new ClassLoaderReference(new CompositeClassLoader()), mapper, new DefaultConverterLookup(), null);
    }
View Full Code Here

Examples of com.thoughtworks.xstream.core.util.ClassLoaderReference

        if (reflectionProvider == null) {
            reflectionProvider = jvm.bestReflectionProvider();
        }
        this.reflectionProvider = reflectionProvider;
        this.hierarchicalStreamDriver = driver;
        this.classLoaderReference = classLoader instanceof ClassLoaderReference ? (ClassLoaderReference)classLoader : new ClassLoaderReference(classLoader);
        this.converterLookup = converterLookup;
        this.converterRegistry = converterRegistry != null
            ? converterRegistry
            : (converterLookup instanceof ConverterRegistry ? (ConverterRegistry)converterLookup : null);
        this.mapper = mapper == null ? buildMapper() : mapper;
View Full Code Here

Examples of com.thoughtworks.xstream.core.util.ClassLoaderReference

*/
public class GaeXStream extends XStream {

    public GaeXStream() {
        this(new PureJavaReflectionProvider(), new XppDriver(),
             new ClassLoaderReference(new CompositeClassLoader()));
    }
View Full Code Here

Examples of com.thoughtworks.xstream.core.util.ClassLoaderReference

    /**
     * Constructs an instance using a GAE compatible instance of the XStreamSerializer.
     */
    public GaeEventStore() {
        this(new XStreamSerializer(new GaeXStream(new PureJavaReflectionProvider(), new XppDriver(),
                                                  new ClassLoaderReference(new CompositeClassLoader()))));
    }
View Full Code Here

Examples of com.thoughtworks.xstream.core.util.ClassLoaderReference

  public static class XStreamIgnoringUnknownFields extends XStream {
    private static final XmlFriendlyReplacer replacer = new XmlFriendlyReplacer("$", "_"); // transitive replacer
   
    public XStreamIgnoringUnknownFields() {
      // copied from default XStream constructor and added replacer
            super(null, new XppDriver(replacer), new ClassLoaderReference(new CompositeClassLoader()), (Mapper) null, new DefaultConverterLookup(), null);
    }
View Full Code Here

Examples of org.apache.geronimo.kernel.ClassLoaderReference

        } catch (URISyntaxException e) {
            throw new DeploymentException("Invalid wsdl URI", e);

        }

        classLoader = new ClassLoaderReference(classLoader);
        AxisWebServiceContainer axisWebServiceContainer = new AxisWebServiceContainer(location, wsdlURI, service, serviceInfo.getWsdlMap(), classLoader);
        //targetGBean.setAttribute("webServiceContainer", axisWebServiceContainer);
        try {
            targetGBean.setAttribute("webServiceContainer", new StoredObject(axisWebServiceContainer)); // Hack!
        } catch (IOException e) {
View Full Code Here

Examples of org.apache.geronimo.kernel.ClassLoaderReference

        } catch (URISyntaxException e) {
            throw new DeploymentException("Invalid wsdl URI", e);

        }

        classLoader = new ClassLoaderReference(classLoader);
        AxisWebServiceContainer axisWebServiceContainer = new AxisWebServiceContainer(location, wsdlURI, service, serviceInfo.getWsdlMap(), classLoader);
        //targetGBean.setAttribute("webServiceContainer", axisWebServiceContainer);
        try {
            targetGBean.setAttribute("webServiceContainer", new StoredObject(axisWebServiceContainer)); // Hack!
        } catch (IOException e) {
View Full Code Here

Examples of org.apache.geronimo.kernel.ClassLoaderReference

        } catch (URISyntaxException e) {
            throw new DeploymentException("Invalid wsdl URI", e);

        }

        classLoader = new ClassLoaderReference(classLoader);
        AxisWebServiceContainer axisWebServiceContainer = new AxisWebServiceContainer(location, wsdlURI, service, serviceInfo.getWsdlMap(), classLoader);

        return new StoredObject(axisWebServiceContainer);
    }
View Full Code Here

Examples of org.apache.geronimo.kernel.ClassLoaderReference

        } catch (URISyntaxException e) {
            throw new DeploymentException("Invalid wsdl URI", e);

        }

        classLoader = new ClassLoaderReference(classLoader);
        AxisWebServiceContainer axisWebServiceContainer = new AxisWebServiceContainer(location, wsdlURI, service, serviceInfo.getWsdlMap(), classLoader);
        //targetGBean.setAttribute("webServiceContainer", axisWebServiceContainer);
        try {
            targetGBean.setAttribute("webServiceContainer", new StoredObject(axisWebServiceContainer)); // Hack!
        } catch (IOException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.