Package com.alibaba.dubbo.common.bytecode

Examples of com.alibaba.dubbo.common.bytecode.Mixin.newInstance()


public class MixinTest extends TestCase
{
  public void testMain() throws Exception
  {
    Mixin mixin = Mixin.mixin(new Class[]{ I1.class, I2.class, I3.class }, new Class[]{ C1.class, C2.class });
    Object o = mixin.newInstance(new Object[]{ new C1(), new C2() });
    assertEquals(o instanceof I1, true);
    assertEquals(o instanceof I2, true);
    assertEquals(o instanceof I3, true);
    ((I1)o).m1();
    ((I2)o).m2();
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.