Package com.sun.star.loader

Examples of com.sun.star.loader.XImplementationLoader.activate()


              XMultiServiceFactory.class,
              xManagerFac.createInstance() );
             
          XSingleServiceFactory xSingleServiceFactory = (XSingleServiceFactory) UnoRuntime.queryInterface(
              XSingleServiceFactory.class,
              xImpLoader.activate("com.sun.star.comp.loader.JavaLoader", null, null, null));
         
          XInitialization xInit = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, xImpLoader);
          Object[] iniargs = { xMultiFac };
         
          xInit.initialize( iniargs );
View Full Code Here


           
            Object[] param = { manager };
            Object loaderObj = manager.createInstanceWithArguments("com.sun.star.loader.Java", param);
            XImplementationLoader xLoader = (XImplementationLoader) UnoRuntime.queryInterface(XImplementationLoader.class, loaderObj);
           
            Object dummyFactory = xLoader.activate( "com.sun.star.comp.loader.DummyService", null, null, null );
           
            System.err.println("-- insert");
            manager.insert(dummyFactory);
            System.err.println("-- done ...");
           
View Full Code Here

  public RmServer_test(String host, String port) {   
      try {        
          JavaLoader loader = new JavaLoader();
         
          XImplementationLoader xImpLoader = (XImplementationLoader) UnoRuntime.queryInterface(XImplementationLoader.class, loader);
          Object loaderobj = xImpLoader.activate("com.sun.star.comp.servicemanager.ServiceManager", null, null, null);
         
          XSingleServiceFactory xManagerFac = (XSingleServiceFactory) UnoRuntime.queryInterface(XSingleServiceFactory.class, loaderobj);

          XMultiServiceFactory xMultiFac = (XMultiServiceFactory) UnoRuntime.queryInterface(
              XMultiServiceFactory.class,
View Full Code Here

              XMultiServiceFactory.class,
              xManagerFac.createInstance() );
             
          XSingleServiceFactory xSingleServiceFactory = (XSingleServiceFactory) UnoRuntime.queryInterface(
              XSingleServiceFactory.class,
              xImpLoader.activate("com.sun.star.comp.loader.JavaLoader", null, null, null));
         
          XInitialization xInit = (XInitialization) UnoRuntime.queryInterface( XInitialization.class, xImpLoader );
          Object[] iniargs = { xMultiFac };
         
          xInit.initialize( iniargs );
View Full Code Here

           
            Object[] param = { manager };
            Object loaderObj = manager.createInstanceWithArguments("com.sun.star.loader.Java", param);
            XImplementationLoader xLoader = (XImplementationLoader) UnoRuntime.queryInterface(XImplementationLoader.class, loaderObj);
           
            Object dummyFactory = xLoader.activate( "com.sun.star.comp.loader.DummyService", null, null, null );
           
            System.err.println("-- insert");
            manager.insert(dummyFactory);
            System.err.println("-- done ...");
           
View Full Code Here

        try {
         
          JavaLoader loader = new JavaLoader();
         
          XImplementationLoader xImpLoader = (XImplementationLoader) UnoRuntime.queryInterface(XImplementationLoader.class, loader);
          Object loaderobj = xImpLoader.activate("com.sun.star.comp.servicemanager.ServiceManager", null, null, null);
         
          XSingleServiceFactory xManagerFac = (XSingleServiceFactory) UnoRuntime.queryInterface(XSingleServiceFactory.class, loaderobj);

          XMultiServiceFactory xMultiFac = (XMultiServiceFactory) UnoRuntime.queryInterface(
              XMultiServiceFactory.class,
View Full Code Here

              XMultiServiceFactory.class,
              xManagerFac.createInstance() );
             
          XSingleServiceFactory xSingleServiceFactory = (XSingleServiceFactory) UnoRuntime.queryInterface(
              XSingleServiceFactory.class,
              xImpLoader.activate("com.sun.star.comp.loader.JavaLoader", null, null, null));
         
          XInitialization xInit = (XInitialization) UnoRuntime.queryInterface( XInitialization.class, xImpLoader );
          Object[] iniargs = { xMultiFac };
         
          xInit.initialize( iniargs );
View Full Code Here

    JavaLoader loader = new JavaLoader();
       
    XImplementationLoader xImpLoader = (XImplementationLoader)UnoRuntime.queryInterface(XImplementationLoader.class, loader);
   
    // Get the factory for the ServiceManager
    Object loaderobj = xImpLoader.activate("com.sun.star.comp.servicemanager.ServiceManager", null, null, null);
       
    // Ensure that we have got a factory
    XSingleServiceFactory xManagerFac =  (XSingleServiceFactory) UnoRuntime.queryInterface(XSingleServiceFactory.class, loaderobj);
    // Create an instance of the ServiceManager
    XMultiServiceFactory xMultiFac = (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class,
View Full Code Here

    // now use the XSet interface at the ServiceManager to add the factory of the loader
    XSet xSet = (XSet) UnoRuntime.queryInterface(XSet.class, xMultiFac);

    // Get the factory of the loader       
    XSingleServiceFactory xSingleServiceFactory = (XSingleServiceFactory) UnoRuntime.queryInterface(XSingleServiceFactory.class,
                                                    xImpLoader.activate("com.sun.star.comp.loader.JavaLoader", null, null, null));

    // add the javaloader
    xSet.insert(xSingleServiceFactory);
   
    // add the service manager
View Full Code Here

    // add the service manager
    xSet.insert(xManagerFac);

    // Get the factory of the URLResolver       
    xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class,
                                         xImpLoader.activate("com.sun.star.comp.urlresolver.UrlResolver", null, null, null));
    xSet.insert(xSingleServiceFactory);

    // add the bridgefactory
    xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class,
                                         xImpLoader.activate("com.sun.star.comp.bridgefactory.BridgeFactory", null, null, null));
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.