Examples of addURL()


Examples of de.sciss.util.DynamicURLClassLoader.addURL()

 
    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

Examples of groovy.lang.GroovyClassLoader.addURL()

      try {

        for (String path : pathsToAdd) {
          if (path.startsWith("file:/")) {
            URL url = new URL(path);
            classLoader.addURL(url);
            classLoader.addClasspath(url.getFile());
          } else {
            classLoader.addURL(new URL("file:///" + path));
            classLoader.addClasspath(path);
          }
View Full Code Here

Examples of groovy.lang.GroovyClassLoader.addURL()

          if (path.startsWith("file:/")) {
            URL url = new URL(path);
            classLoader.addURL(url);
            classLoader.addClasspath(url.getFile());
          } else {
            classLoader.addURL(new URL("file:///" + path));
            classLoader.addClasspath(path);
          }
        }

      } catch (IOException e) {
View Full Code Here

Examples of javax.management.loading.MLet.addURL()

      ObjectName name = new ObjectName(":test=test");
     
      // mlet cl to DLR
      try
      {
         mlet.addURL("file:./output/etc/test/compliance/server/Test.jar");
         server.registerMBean(mlet, name);
     
         Object o = server.instantiate("test.compliance.server.support.AClass");
      }
      finally
View Full Code Here

Examples of javax.management.loading.MLet.addURL()

         MBeanServer server = MBeanServerFactory.newMBeanServer();
         MLet mlet = new MLet();
     
         // mlet cl to DLR
         mlet.addURL("file:./output/etc/test/compliance/server/Test.jar");
         //server.registerMBean(mlet, new ObjectName(":test=test"));
     
         Object o = server.instantiate("test.compliance.server.support.AClass");
     
//
View Full Code Here

Examples of javax.management.loading.MLet.addURL()

      {
         // register the mlet used to load the MBeans MLet one
         ObjectName mName1 = new ObjectName("loading:test=mlet1");
         MLet mlet1 = new MLet();
         m_server.registerMBean(mlet1, mName1);
         mlet1.addURL(jarPath1);
//      mlet1.addURL(new File("one.jar").toURL());

         ObjectName mName2 = new ObjectName("loading:test=mlet2");
         MLet mlet2 = new MLet();
         m_server.registerMBean(mlet2, mName2);
View Full Code Here

Examples of javax.management.loading.MLet.addURL()

//      mlet1.addURL(new File("one.jar").toURL());

         ObjectName mName2 = new ObjectName("loading:test=mlet2");
         MLet mlet2 = new MLet();
         m_server.registerMBean(mlet2, mName2);
         mlet2.addURL(jarPath2);
//      mlet2.addURL(new File("two.jar").toURL());

         String mbeanClass1 = "mx4j.examples.tools.persister.MBeanOne";
         ObjectName mbeanName1 = new ObjectName("test:name=MBeanOne");
         m_server.createMBean(mbeanClass1, mbeanName1, mName1,
View Full Code Here

Examples of javax.management.loading.MLet.addURL()

      ObjectName name = new ObjectName(":test=test");
     
      // mlet cl to DLR
      try
      {
         mlet.addURL(new URL(location, "lib/jmxcompliance-Test.jar"));
         server.registerMBean(mlet, name);
     
         server.instantiate("org.jboss.test.jmx.compliance.server.support.AClass");
      }
      finally
View Full Code Here

Examples of javax.management.loading.MLet.addURL()

         MBeanServer server = MBeanServerFactory.newMBeanServer();
         MLet mlet = new MLet();
     
         // mlet cl to DLR
         mlet.addURL("file:./output/etc/test/compliance/server/Test.jar");
         //server.registerMBean(mlet, new ObjectName(":test=test"));
     
         server.instantiate("org.jboss.test.jmx.compliance.server.support.AClass");
     
//
View Full Code Here

Examples of net.minecraft.launchwrapper.LaunchClassLoader.addURL()

        }
    }

    private void loadFiles(File file) throws MalformedURLException {
        LaunchClassLoader classLoader = (LaunchClassLoader) this.getClass().getClassLoader();
        classLoader.addURL(file.toURI().toURL());
        denLibCore.print("Loaded library " + file.getName());
    }

    @Override
    public byte[] transform(String string, String string1, byte[] bytes) {
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.