Examples of XAcceptor


Examples of com.sun.star.connection.XAcceptor

    UnoAppHolder holder = new UnoAppHolder();
    holder.acquire();
    try {
      // get an acceptor
      XAcceptor xAcceptor = (XAcceptor)UnoRuntime.queryInterface(XAcceptor.class,
                                     xMultiServiceFactory.createInstance("com.sun.star.connection.Acceptor"));
         
      // get a bridgefactory
      XBridgeFactory xBridgeFactory = (XBridgeFactory)UnoRuntime.queryInterface(XBridgeFactory.class,
                                            xMultiServiceFactory.createInstance("com.sun.star.bridge.BridgeFactory"));
         
      int connect_count = 0;

      do {
        XConnection xConnection = null;
        try {
          System.err.println("waiting for connect [" + conDcp + "#" + connect_count + "]...");
          xConnection = xAcceptor.accept(conDcp);
          if(xConnection == null)
            break;

          XConnectionBroadcaster broadcaster = (XConnectionBroadcaster)
            UnoRuntime.queryInterface(
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.