Package com.alibaba.fastjson.parser.deserializer

Examples of com.alibaba.fastjson.parser.deserializer.ASMDeserializerFactory


import com.alibaba.fastjson.parser.deserializer.ASMDeserializerFactory;

public class TestASM_primitive extends TestCase {

    public void test_asm() throws Exception {
        ASMDeserializerFactory factory = new ASMDeserializerFactory();
        Exception error = null;
        try {
            factory.createJavaBeanDeserializer(ParserConfig.getGlobalInstance(), int.class, int.class);
        } catch (Exception ex) {
            error = ex;
        }
        Assert.assertNotNull(error);
    }
View Full Code Here


        if (asmFactory == null) {
            try {
                if (parentClassLoader == null) {
                    asmFactory = ASMDeserializerFactory.getInstance();   
                } else {
                    asmFactory = new ASMDeserializerFactory(parentClassLoader);
                }
            } catch (ExceptionInInitializerError error) {
                // skip
            } catch (AccessControlException error) {
                // skip
View Full Code Here

    public ParserConfig() {
        this(ASMDeserializerFactory.getInstance());
    }
   
    public ParserConfig(ClassLoader parentClassLoader){
        this(new ASMDeserializerFactory(parentClassLoader));
    }
View Full Code Here

TOP

Related Classes of com.alibaba.fastjson.parser.deserializer.ASMDeserializerFactory

Copyright © 2018 www.massapicom. 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.