Examples of DynamicURLClassLoader


Examples of com.bj58.spat.gaea.server.deploy.hotdeploy.DynamicURLClassLoader

  }
 
  @Test
  public void hotDeploy() throws Exception {
   
    DynamicURLClassLoader classLoader = new DynamicURLClassLoader();
    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 de.sciss.util.DynamicURLClassLoader

  public void oscCmd_initSwing( RoutedOSCMessage rom )
  {
    if( swingOSC != null ) return;
 
    final DynamicURLClassLoader  cl = new DynamicURLClassLoader( getClass().getClassLoader() );
    final Class          clz;
   
    try {
      cl.addURL( new File( OSCRoot.getInstance().getPreferences().get( KEY_SWINGAPP, null )).toURI().toURL() );
      clz = Class.forName( "de.sciss.swingosc.SwingOSC", true, cl );
//      swingOSC = new SwingOSC();
      swingOSC = clz.newInstance();
      // start( String protocol, int port, boolean loopBack, int bufSize, boolean initSwing, SocketAddress helloAddr)
//      swingOSC.start( OSCChannel.TCP, 12345, true, 8192, false, 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.