Examples of IProxyFactory


Examples of com.bj58.spat.gaea.server.contract.context.IProxyFactory

    classLoader.addURL("D:/serviceframe_v2_online/lib/serviceframe/serviceframe-2.0.1.beta.jar");
    classLoader.addFolder("D:/serviceframe_v2_online/service/deploy/imc/");
    Class<?> cmCls = classLoader.loadClass("com.bj58.sfft.serviceframe.deploy.bytecode.CreateManager");
   
    Method createProxy = cmCls.getDeclaredMethod("careteProxy", new Class[] { String.class });
    IProxyFactory pf = (IProxyFactory)createProxy.invoke(cmCls.newInstance(), "D:/serviceframe_v2_online/service/deploy/imc/");
    System.out.println("pf:" + pf);
  }
View Full Code Here

Examples of com.bj58.spat.gaea.server.contract.context.IProxyFactory

      localProxyAry.add((IProxyStub)cls.newInstance());
    }
   
    Class<?> proxyFactoryCls = classLoader.findClass(cfProxyFactory.getClsName(), cfProxyFactory.getClsByte(), null);
    Constructor<?> constructor = proxyFactoryCls.getConstructor(List.class);
    IProxyFactory pfInstance = (IProxyFactory)constructor.newInstance(localProxyAry);
    logger.info("crate ProxyFactory instance!!!");
    return pfInstance;
  }
View Full Code Here

Examples of com.bj58.spat.gaea.server.contract.context.IProxyFactory

          Global.getSingleton().getRootPath() + "service/deploy/" + Global.getSingleton().getServiceConfig().getString("gaea.service.name") + "/",
          Global.getSingleton().getRootPath() + "service/lib/",
          Global.getSingleton().getRootPath() + "lib"
          );
     
      IProxyFactory proxyFactory = ProxyFactoryLoader.loadProxyFactory(classLoader);
      if(proxyFactory != null) {
        Global.getSingleton().setProxyFactory(proxyFactory);
        logger.info("change context class loader");
        Thread.currentThread().setContextClassLoader(proxyFactory.getClass().getClassLoader());
        logger.info("init serializer type map");
        TypeHelper.InitTypeMap();
        logger.info("notice gc");
        System.gc();
        logger.info("hot deploy service success!!!");
View Full Code Here

Examples of com.bj58.spat.gaea.server.contract.context.IProxyFactory

    logger.info("-------------------------end-------------------------\n");

    if(new File(serviceFolderPath).isDirectory() || !serviceName.equalsIgnoreCase("error_service_name_is_null")) {
      // load proxy factory
      logger.info("--------------------loading proxys-------------------");
      IProxyFactory proxyFactory = ProxyFactoryLoader.loadProxyFactory(classLoader);
      Global.getSingleton().setProxyFactory(proxyFactory);
      logger.info("-------------------------end-------------------------\n");
     
      // load init beans
      logger.info("-----------------loading init beans------------------");
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.