Examples of ClassLoaderReference


Examples of com.thoughtworks.xstream.core.ClassLoaderReference

    /**
     * @deprecated As of 1.4.5 use {@link #ExternalizableConverter(Mapper, ClassLoaderReference)}
     */
    @Deprecated
    public ExternalizableConverter(final Mapper mapper, final ClassLoader classLoader) {
        this(mapper, new ClassLoaderReference(classLoader));
    }
View Full Code Here

Examples of com.thoughtworks.xstream.core.ClassLoaderReference

     * @deprecated As of 1.4.5 use {@link #getInstance(DataHolder, StreamCallback, ClassLoaderReference)}
     */
    @Deprecated
    public static synchronized CustomObjectInputStream getInstance(final DataHolder whereFrom,
            final CustomObjectInputStream.StreamCallback callback, final ClassLoader classLoader) {
        return getInstance(whereFrom, callback, new ClassLoaderReference(classLoader));
    }
View Full Code Here

Examples of com.thoughtworks.xstream.core.ClassLoaderReference

     * @deprecated As of 1.4.5 use {@link #CustomObjectInputStream(StreamCallback, ClassLoaderReference)}
     */
    @Deprecated
    public CustomObjectInputStream(final StreamCallback callback, final ClassLoader classLoader)
            throws IOException, SecurityException {
        this(callback, new ClassLoaderReference(classLoader));
    }
View Full Code Here

Examples of com.thoughtworks.xstream.core.ClassLoaderReference

    /**
     * @deprecated As of 1.4.5 use {@link #DynamicProxyConverter(Mapper, ClassLoaderReference)}
     */
    @Deprecated
    public DynamicProxyConverter(final Mapper mapper, final ClassLoader classLoader) {
        this(mapper, new ClassLoaderReference(classLoader));
    }
View Full Code Here

Examples of com.thoughtworks.xstream.core.ClassLoaderReference

    /**
     * @deprecated As of 1.4.5 use {@link #JavaClassConverter(ClassLoaderReference)}
     */
    @Deprecated
    public JavaClassConverter(final ClassLoader classLoader) {
        this(new ClassLoaderReference(classLoader));
    }
View Full Code Here

Examples of com.thoughtworks.xstream.core.ClassLoaderReference

     * @param classLoader the ClassLoader used by the XStream instance.
     * @deprecated As of 1.4.5 use {@link #DefaultMapper(ClassLoaderReference)}
     */
    @Deprecated
    public DefaultMapper(final ClassLoader classLoader) {
        this(new ClassLoaderReference(classLoader));
    }
View Full Code Here

Examples of com.thoughtworks.xstream.core.ClassLoaderReference

     */
    @Deprecated
    public AnnotationMapper(
            final Mapper wrapped, final ConverterRegistry converterRegistry, final ConverterLookup converterLookup,
            final ClassLoader classLoader, final ReflectionProvider reflectionProvider, final JVM jvm) {
        this(wrapped, converterRegistry, converterLookup, new ClassLoaderReference(classLoader), reflectionProvider);
    }
View Full Code Here

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

    private final XStream xstream;

    public XStreamCache() {
        JVM jvm = new JVM();
        ClassLoaderReference classLoaderReference = new ClassLoaderReference(
            new CompositeClassLoader());
        DefaultConverterLookup converterLookup = new DefaultConverterLookup();
        xstream = new XStream(
            jvm.bestReflectionProvider(), new XppDriver(), classLoaderReference, buildMapper(
                getMappers(jvm), jvm, classLoaderReference, converterLookup), converterLookup, converterLookup);
View Full Code Here

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

     *             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

        }
        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
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.