Package com.sun.star.loader

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


                                         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));
    xSet.insert(xSingleServiceFactory);

    // add the connector
    xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class,
                                         xImpLoader.activate("com.sun.star.comp.connections.Connector", null, null, null));
View Full Code Here


                                         xImpLoader.activate("com.sun.star.comp.bridgefactory.BridgeFactory", null, null, null));
    xSet.insert(xSingleServiceFactory);

    // add the connector
    xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class,
                                         xImpLoader.activate("com.sun.star.comp.connections.Connector", null, null, null));
    xSet.insert(xSingleServiceFactory);
   
    // add the acceptor
    xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class,
                                         xImpLoader.activate("com.sun.star.comp.connections.Acceptor", null, null, null));
View Full Code Here

                                         xImpLoader.activate("com.sun.star.comp.connections.Connector", null, null, null));
    xSet.insert(xSingleServiceFactory);
   
    // add the acceptor
    xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class,
                                         xImpLoader.activate("com.sun.star.comp.connections.Acceptor", null, null, null));
    xSet.insert(xSingleServiceFactory);

    return xMultiFac;
  }
View Full Code Here

      String keys[] = xRegistryKey.getKeyNames();
      for(int j = 0; j < keys.length; ++ j) {
        String implName = keys[j].substring(1);
        implName = implName.substring(0, implName.length() - "/UNO/SERVICES".length());

        Object factory = loader.activate(implName, null, componentName, xRegistryKey);
        XSingleServiceFactory xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class,
                                                         factory);
         
        if (xSingleServiceFactory == null)
          throw new com.sun.star.loader.CannotActivateFactoryException("Can not get factory for " +  implName);
View Full Code Here

    XImplementationLoader implLoader;
    implLoader  = (XImplementationLoader)UnoRuntime.queryInterface(
      XImplementationLoader.class, object);

    object  = implLoader.activate(
      "com.sun.star.comp.servicemanager.ServiceManager", null, null, null);

    // Ensure that we have got a factory
    XSingleServiceFactory  managerFact;
    managerFact  = (XSingleServiceFactory)UnoRuntime.queryInterface(
View Full Code Here

    XSingleServiceFactory  singleServiceFact;
    // Add the factory of the loader
    singleServiceFact  = (XSingleServiceFactory)UnoRuntime.queryInterface(
      XSingleServiceFactory.class,
      implLoader.activate(
        "com.sun.star.comp.loader.JavaLoader", null, null, null));
    serviceMgrXSet.insert(singleServiceFact);
               
    // Add the service manager
    serviceMgrXSet.insert(managerFact);
View Full Code Here

    serviceMgrXSet.insert(managerFact);

    // Add the factory of the URLResolver       
    singleServiceFact  = (XSingleServiceFactory)UnoRuntime.queryInterface(
      XSingleServiceFactory.class,
      implLoader.activate(
        "com.sun.star.comp.urlresolver.UrlResolver", null, null, null));
    serviceMgrXSet.insert(singleServiceFact);

    // Add the bridgefactory
    singleServiceFact  = (XSingleServiceFactory)UnoRuntime.queryInterface(
View Full Code Here

    serviceMgrXSet.insert(singleServiceFact);

    // Add the bridgefactory
    singleServiceFact  = (XSingleServiceFactory)UnoRuntime.queryInterface(
      XSingleServiceFactory.class,
      implLoader.activate(
        "com.sun.star.comp.bridgefactory.BridgeFactory", null, null, null));
    serviceMgrXSet.insert(singleServiceFact);

    // Ufff ... that's all
    mLocalServiceFactory = serviceMgr;
View Full Code Here

    XImplementationLoader xImpLoader = (XImplementationLoader)UnoRuntime.queryInterface(
            XImplementationLoader.class, new JavaLoader() );
   
    // Get the factory of the ServiceManager
    XSingleComponentFactory smgr_fac = (XSingleComponentFactory)UnoRuntime.queryInterface(
            XSingleComponentFactory.class, xImpLoader.activate(
                "com.sun.star.comp.servicemanager.ServiceManager", null, null, null ) );
       
    // Create an instance of the ServiceManager
    XMultiComponentFactory xSMgr = (XMultiComponentFactory)UnoRuntime.queryInterface(
            XMultiComponentFactory.class, smgr_fac.createInstanceWithContext( null ) );
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

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.