Examples of ModBundle


Examples of de.mhus.framework.mod.ModBundle

    IConfig cpath = c.createConfig("classpath");
    IConfig loader = cpath.createConfig("resource");
    loader.setString("jar", "etc/test/test.jar");
   
    // Create Bundle and ModConfig
    IBundle b1 = new ModBundle(new IModConfig[] {new ModConfig(c)}, "test1", false);
   
    // Init Bundle
      List<IModActivator> activators = new LinkedList<IModActivator>();
      manager.initializeBundle(b1,activators);
      manager.enableActivators(activators);
View Full Code Here

Examples of de.mhus.framework.mod.ModBundle

    HashConfig c3 = new HashConfig();
    c3.setString("class", SimpleActivator.class.getCanonicalName());
    c3.setString("id", "test3");
    c3.setString("name", "Simple3");
   
    ModBundle bundle1 = new ModBundle(new IModConfig[] { new ModConfig(c1), new ModConfig(c2)}, "bundle1", true);
   
    ModBundle bundle2 = new ModBundle(new IModConfig[] { new ModConfig(c3) }, "bundle2", true);
   
    modManager.append(bundle1);
    modManager.append(bundle2);

    bundleManager.initializeModule(bundle1,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.