Package com.dyuproject.protostuff.runtime.SampleDelegates

Examples of com.dyuproject.protostuff.runtime.SampleDelegates.ShortArrayDelegate


       
    }
   
    public void testPojoWithShortArrayAsDelegate() throws Exception
    {
        ShortArrayDelegate delegate = null;
        if(RuntimeEnv.ID_STRATEGY instanceof DefaultIdStrategy)
        {
            if(!((DefaultIdStrategy)RuntimeEnv.ID_STRATEGY).registerDelegate(
                    delegate = new ShortArrayDelegate()))
            {
                // couldn't register
                delegate = null;
            }
        }
View Full Code Here


                .registerPojo(PojoWithMap.class, 7)
                .registerPojo(Bat.SCHEMA, Bat.PIPE_SCHEMA, 8)
                .registerPojo(WrapsBat.class, 9)
                .registerPojo(PojoWithCustomArrayListAndHashMap.class, 10);
           
            r.registerDelegate(new ShortArrayDelegate(), 1);
            r.registerDelegate(SINGLETON_DELEGATE, 2);
           
            r = null;
        }
View Full Code Here

                .registerPojo(RuntimeException.class, 19)
                .registerPojo(PojoWithThrowableArray.class, 20)
                .registerPojo(PojoWithSingletonAsDelegate.class, 21)
                .registerPojo(PojoWithShortArrayAsDelegate.class, 22);
           
            r.registerDelegate(new ShortArrayDelegate(), 1);
            r.registerDelegate(SINGLETON_DELEGATE, 2);
           
            r = null;
        }
View Full Code Here

TOP

Related Classes of com.dyuproject.protostuff.runtime.SampleDelegates.ShortArrayDelegate

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.