Examples of IInterface


Examples of com4j.tlbimp.def.IInterface

                }

                if (di == null && ii == null)
                    break;

                IInterface intf;
                if (ii != null) {
                    intf = ii;
                } else {
                    if(di.isDual())
                        intf = di.getVtblInterface();
View Full Code Here

Examples of org.apache.wicket.proxy.util.IInterface

   */
  @Test
  public void testInterfaceProxy()
  {
    // test proxy creation for an interface class
    IInterface proxy = (IInterface)LazyInitProxyFactory.createProxy(IInterface.class,
      interfaceObjectLocator);

    // test we have a jdk dynamic proxy
    assertTrue(Proxy.isProxyClass(proxy.getClass()));

    // test proxy implements ILazyInitProxy
    assertTrue(proxy instanceof ILazyInitProxy);
    assertTrue(((ILazyInitProxy)proxy).getObjectLocator() == interfaceObjectLocator);

    // test method invocation
    assertEquals(proxy.getMessage(), "interface");

    // test serialization
    IInterface proxy2 = (IInterface)WicketObjects.cloneObject(proxy);
    assertTrue(proxy != proxy2);
    assertEquals(proxy2.getMessage(), "interface");

    // test equals/hashcode method interception
    final IObjectMethodTester tester = new ObjectMethodTester();
    assertTrue(tester.isValid());

View Full Code Here

Examples of org.apache.wicket.proxy.util.IInterface

   */
  @Test
  public void testInterfaceProxy()
  {
    // test proxy creation for an interface class
    IInterface proxy = (IInterface)LazyInitProxyFactory.createProxy(IInterface.class,
      interfaceObjectLocator);

    // test we have a jdk dynamic proxy
    assertTrue(Proxy.isProxyClass(proxy.getClass()));

    // test proxy implements ILazyInitProxy
    assertThat(proxy, instanceOf(ILazyInitProxy.class));
    assertTrue(((ILazyInitProxy)proxy).getObjectLocator() == interfaceObjectLocator);

    // test method invocation
    assertEquals(proxy.getMessage(), "interface");

    // test serialization
    IInterface proxy2 = WicketObjects.cloneObject(proxy);
    assertTrue(proxy != proxy2);
    assertEquals(proxy2.getMessage(), "interface");

    // test equals/hashcode method interception
    final IObjectMethodTester tester = new ObjectMethodTester();
    assertTrue(tester.isValid());

View Full Code Here

Examples of org.apache.wicket.proxy.util.IInterface

   * Tests lazy init proxy to represent interfaces
   */
  public void testInterfaceProxy()
  {
    // test proxy creation for an interface class
    IInterface proxy = (IInterface)LazyInitProxyFactory.createProxy(IInterface.class,
        interfaceObjectLocator);

    // test we have a jdk dynamic proxy
    assertTrue(Proxy.isProxyClass(proxy.getClass()));

    // test proxy implements ILazyInitProxy
    assertTrue(proxy instanceof ILazyInitProxy);
    assertTrue(((ILazyInitProxy)proxy).getObjectLocator() == interfaceObjectLocator);

    // test method invocation
    assertEquals(proxy.getMessage(), "interface");

    // test serialization
    IInterface proxy2 = (IInterface)Objects.cloneObject(proxy);
    assertTrue(proxy != proxy2);
    assertEquals(proxy2.getMessage(), "interface");

    // test equals/hashcode method interception
    final IObjectMethodTester tester = new ObjectMethodTester();
    assertTrue(tester.isValid());

View Full Code Here

Examples of org.apache.wicket.proxy.util.IInterface

   */
  @Test
  public void testInterfaceProxy()
  {
    // test proxy creation for an interface class
    IInterface proxy = (IInterface)LazyInitProxyFactory.createProxy(IInterface.class,
      interfaceObjectLocator);

    // test we have a jdk dynamic proxy
    assertTrue(Proxy.isProxyClass(proxy.getClass()));

    // test proxy implements ILazyInitProxy
    assertTrue(proxy instanceof ILazyInitProxy);
    assertTrue(((ILazyInitProxy)proxy).getObjectLocator() == interfaceObjectLocator);

    // test method invocation
    assertEquals(proxy.getMessage(), "interface");

    // test serialization
    IInterface proxy2 = (IInterface)WicketObjects.cloneObject(proxy);
    assertTrue(proxy != proxy2);
    assertEquals(proxy2.getMessage(), "interface");

    // test equals/hashcode method interception
    final IObjectMethodTester tester = new ObjectMethodTester();
    assertTrue(tester.isValid());

View Full Code Here

Examples of org.apache.wicket.proxy.util.IInterface

   */
  @Test
  public void testInterfaceProxy()
  {
    // test proxy creation for an interface class
    IInterface proxy = (IInterface)LazyInitProxyFactory.createProxy(IInterface.class,
      interfaceObjectLocator);

    // test we have a jdk dynamic proxy
    assertTrue(Proxy.isProxyClass(proxy.getClass()));

    // test proxy implements ILazyInitProxy
    assertTrue(proxy instanceof ILazyInitProxy);
    assertTrue(((ILazyInitProxy)proxy).getObjectLocator() == interfaceObjectLocator);

    // test method invocation
    assertEquals(proxy.getMessage(), "interface");

    // test serialization
    IInterface proxy2 = (IInterface)WicketObjects.cloneObject(proxy);
    assertTrue(proxy != proxy2);
    assertEquals(proxy2.getMessage(), "interface");

    // test equals/hashcode method interception
    final IObjectMethodTester tester = new ObjectMethodTester();
    assertTrue(tester.isValid());

View Full Code Here

Examples of org.apache.wicket.proxy.util.IInterface

   * Tests lazy init proxy to represent interfaces
   */
  public void testInterfaceProxy()
  {
    // test proxy creation for an interface class
    IInterface proxy = (IInterface) LazyInitProxyFactory.createProxy(
        IInterface.class, interfaceObjectLocator);

    // test we have a jdk dynamic proxy
    assertTrue(Proxy.isProxyClass(proxy.getClass()));

    // test proxy implements ILazyInitProxy
    assertTrue(proxy instanceof ILazyInitProxy);
    assertTrue(((ILazyInitProxy) proxy).getObjectLocator() == interfaceObjectLocator);

    // test method invocation
    assertEquals(proxy.getMessage(), "interface");

    // test serialization
    IInterface proxy2 = (IInterface) Objects.cloneObject(proxy);
    assertTrue(proxy != proxy2);
    assertEquals(proxy2.getMessage(), "interface");

    // test equals/hashcode method interception
    final IObjectMethodTester tester = new ObjectMethodTester();
    assertTrue(tester.isValid());

View Full Code Here

Examples of org.apache.wicket.proxy.util.IInterface

   * Tests lazy init proxy to represent interfaces
   */
  public void testInterfaceProxy()
  {
    // test proxy creation for an interface class
    IInterface proxy = (IInterface) LazyInitProxyFactory.createProxy(
        IInterface.class, interfaceObjectLocator);

    // test we have a jdk dynamic proxy
    assertTrue(Proxy.isProxyClass(proxy.getClass()));

    // test proxy implements ILazyInitProxy
    assertTrue(proxy instanceof ILazyInitProxy);
    assertTrue(((ILazyInitProxy) proxy).getObjectLocator() == interfaceObjectLocator);

    // test method invocation
    assertEquals(proxy.getMessage(), "interface");

    // test serialization
    IInterface proxy2 = (IInterface) Objects.cloneObject(proxy);
    assertTrue(proxy != proxy2);
    assertEquals(proxy2.getMessage(), "interface");

    // test equals/hashcode method interception
    final IObjectMethodTester tester = new ObjectMethodTester();
    assertTrue(tester.isValid());

View Full Code Here

Examples of org.apache.wicket.proxy.util.IInterface

   * Tests lazy init proxy to represent interfaces
   */
  public void testInterfaceProxy()
  {
    // test proxy creation for an interface class
    IInterface proxy = (IInterface)LazyInitProxyFactory.createProxy(IInterface.class,
      interfaceObjectLocator);

    // test we have a jdk dynamic proxy
    assertTrue(Proxy.isProxyClass(proxy.getClass()));

    // test proxy implements ILazyInitProxy
    assertTrue(proxy instanceof ILazyInitProxy);
    assertTrue(((ILazyInitProxy)proxy).getObjectLocator() == interfaceObjectLocator);

    // test method invocation
    assertEquals(proxy.getMessage(), "interface");

    // test serialization
    IInterface proxy2 = (IInterface)WicketObjects.cloneObject(proxy);
    assertTrue(proxy != proxy2);
    assertEquals(proxy2.getMessage(), "interface");

    // test equals/hashcode method interception
    final IObjectMethodTester tester = new ObjectMethodTester();
    assertTrue(tester.isValid());

View Full Code Here

Examples of org.destecs.tools.jprotocolgenerator.ast.IInterface

  private static String outputFolder;
  private static IInterface stryctInterface;

  public String generate(IInterface intf, String outputFolder)
  {
    stryctInterface = new IInterface();
    stryctInterface.setName("IStruct");

    Method toMapMethod = new Method();
    toMapMethod.name = "toMap";
    toMapMethod.returnType = new FreeTextType("Map<String,? extends Object>");// new Type( new MapType(new
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.