@Test public void testProxy() throws IgniteCheckedException { OptimizedMarshaller marsh = marshaller(); marsh.setRequireSerializable(false); SomeItf inItf = (SomeItf)Proxy.newProxyInstance( OptimizedMarshallerTest.class.getClassLoader(), new Class[] {SomeItf.class}, new InvocationHandler() { private NonSerializable obj = new NonSerializable(null); @Override public Object invoke(Object proxy, Method mtd, Object[] args) throws Throwable { obj.checkAfterUnmarshalled(); return 17; } } ); SomeItf outItf = marsh.unmarshal(marsh.marshal(inItf), null); assertEquals(outItf.checkAfterUnmarshalled(), 17); }
public OptimizedMarshaller setRequireSerializable(boolean requireSer) { this.requireSer = requireSer; return this; }
OptimizedMarshaller extends AbstractNodeNameAwareMarshaller { public OptimizedMarshaller setRequireSerializable(boolean requireSer) { this.requireSer = requireSer; return this; } }
OptimizedMarshaller extends AbstractNodeNameAwareMarshaller { public OptimizedMarshaller setRequireSerializable(boolean requireSer) { this.requireSer = requireSer; return this; } OptimizedMarshaller();  OptimizedMarshaller(boolean requireSer); }
OptimizedMarshaller extends AbstractNodeNameAwareMarshaller { public OptimizedMarshaller setRequireSerializable(boolean requireSer) { this.requireSer = requireSer; return this; } OptimizedMarshaller();  OptimizedMarshaller(boolean requireSer); OptimizedMarshaller setRequireSerializable(boolean requireSer); OptimizedMarshaller setIdMapper(OptimizedMarshallerIdMapper mapper); OptimizedMarshaller setPoolSize(int poolSize); @SuppressWarnings({"TypeParameterExtendsFinalClass", "ErrorNotRethrown"}) static boolean available(); @Override void onUndeploy(ClassLoader ldr); @Override String toString(); }
OptimizedMarshaller extends AbstractNodeNameAwareMarshaller { public OptimizedMarshaller setRequireSerializable(boolean requireSer) { this.requireSer = requireSer; return this; } OptimizedMarshaller();  OptimizedMarshaller(boolean requireSer); OptimizedMarshaller setRequireSerializable(boolean requireSer); OptimizedMarshaller setIdMapper(OptimizedMarshallerIdMapper mapper); OptimizedMarshaller setPoolSize(int poolSize); @SuppressWarnings({"TypeParameterExtendsFinalClass", "ErrorNotRethrown"}) static boolean available(); @Override void onUndeploy(ClassLoader ldr); @Override String toString(); static final boolean USE_DFLT_SUID; }