Examples of Loader


Examples of httl.spi.Loader

  @SuppressWarnings("unchecked")
  @Test
  public void testTemplate() throws Exception {
    Engine engine = Engine.getEngine(config);
    Loader loader = engine.getProperty("loader", Loader.class);
    assertEquals(MultiLoader.class, loader.getClass());
    Loader[] loaders = engine.getProperty("loaders", Loader[].class);
    assertEquals(ClasspathLoader.class, loaders[0].getClass());
    loader = engine.getProperty("loaders", ClasspathLoader.class);
    assertEquals(ClasspathLoader.class, loader.getClass());
    String[] suffixes = engine.getProperty("template.suffix", new String[] { ".httl" });
    List<String> list = loader.list(suffixes[0]);
    assertTrue(list.size() > 0);
    String dir = engine.getProperty("template.directory", "");
    if (dir.length() > 0 && dir.startsWith("/")) {
      dir = dir.substring(1);
    }
View Full Code Here

Examples of it.uniroma1.dptu.glpk.rt.Loader

      .append(osName)
      .append('-')
      .append(osVer)
  .toString();

  Loader loader = new Loader();
  String nmResource = loader.getLibResource(osArch, osName, osVer);
  if(nmResource == null) {
      // This architecture is not yet known to the package and a new jni
      // plugin needs to be build and defined.

      Properties props;
      try { props = loader.getMappings(); }
      catch(IOException ex)
      { props = new Properties(); }

      // Attempts hinting a plug-in name for this architecture
next:      for(int i = 0;; ++i) {
View Full Code Here

Examples of javassist.Loader

                                              String componentClassName, MutableComponentModel model,
                                              BindingSource source, Runnable phaseTwoTraining) throws Exception
    {
        ClassFactoryClassPool pool = new ClassFactoryClassPool(contextClassLoader);

        Loader loader = new TestPackageAwareLoader(contextClassLoader, pool);

        pool.appendClassPath(new LoaderClassPath(loader));

        ClassFactory cf = new ClassFactoryImpl(loader, pool, logger);
View Full Code Here

Examples of javassist.tools.reflect.Loader

  % java sample.reflect.Person Joe
*/
public class Main {
    public static void main(String[] args) throws Throwable {
        Loader cl = (Loader)Main.class.getClassLoader();
        cl.makeReflective("sample.reflect.Person",
                          "sample.reflect.VerboseMetaobj",
                          "javassist.tools.reflect.ClassMetaobject");

        cl.run("sample.reflect.Person", args);
    }
View Full Code Here

Examples of m33.util.Loader

  private Loader loader;
  private int rows, cols;
  private Random rand;

  public TileManager() {
    loader = new Loader();
    rand = new Random();

    // Load level 1 tileSheet
    Toolkit tk = Toolkit.getDefaultToolkit();
    levelImg = tk.getImage(loader.getURL("level1_16.png"));
View Full Code Here

Examples of net.csdn.bootstrap.loader.Loader

        boolean disableMysql = settings.getAsBoolean(ServiceFramwork.mode + ".datasources.mysql.disable", false);
        boolean disableMongo = settings.getAsBoolean(ServiceFramwork.mode + ".datasources.mongodb.disable", false);
        boolean disableHttp = settings.getAsBoolean("http.disable", false);
        boolean disableThrift = settings.getAsBoolean("thrift.disable", true);

        Loader loggerLoader = new LoggerLoader();

        loggerLoader.load(settings);


        if (ServiceFramwork.scanService.getLoader() == null || (ServiceFramwork.scanService.getLoader() == DefaultScanService.class)) {
            ServiceFramwork.scanService.setLoader(ServiceFramwork.class);
        }
        if (!disableMysql) {
            JPA.configure(new JPA.CSDNORMConfiguration(ServiceFramwork.mode.name(), tuple.v1(), ServiceFramwork.scanService.getLoader(), ServiceFramwork.classPool));
        }
        if (!disableMongo) {
            MongoMongo.configure(new MongoMongo.CSDNMongoConfiguration(ServiceFramwork.mode.name(), tuple.v1(), ServiceFramwork.scanService.getLoader(), ServiceFramwork.classPool));
        }

        Loader moduleLoader = new ModuelLoader();
        moduleLoader.load(settings);

        List<Loader> loaders = new ArrayList<Loader>();

        loaders.add(new ServiceLoader());
        loaders.add(new UtilLoader());
View Full Code Here

Examples of net.sf.pummel.loader.Loader

  }

  private void launch() {
    LoaderView splashView = new LoaderView();

    Loader loader = new Loader(this);

    loader.addLoaderListener(splashView);
    loader.addLoaderListener(new LoaderListener() {

      @Override
      public void done() {
        showMainWindow();
      }

      @Override
      public void loading(String task) {
        // no-op
      }
    });
    splashView.show();

    loader.execute();
  }
View Full Code Here

Examples of nz.govt.natlib.meta.config.Loader

      JarResources jar = new JarResources(jarNameTxt.getText());
      Set contents = jar.listContents();
      Iterator it = contents.iterator();
      xmlFiles = new ArrayList();
      adapterClass = null;
      Loader miniLoader = new Loader();
      while (it.hasNext()) {
        String path = (String) it.next();
        if (path.endsWith(".class")) {
          if (adapterClass == null) {
            String className = path.substring(0,
                path.indexOf(".class")).replace('/', '.');
            byte[] classBytes = null;
            classBytes = jar.getResource(path);
            if (classBytes != null) {
              Class cl = null;
              try {
                cl = miniLoader.returnClass(className,
                    classBytes, 0, classBytes.length);
              } catch (NoClassDefFoundError cnf) {
                // LogManager.getInstance().logMessage(new
                // LogMessage(LogMessage.WORTHLESS_CHATTER,cnf,"Adapter
                // class load ignored","Adapter may be corrupt,
View Full Code Here

Examples of org.aeonbits.owner.loaders.Loader

    }

    void load(Properties result, URL url) throws IOException {
        InputStream stream = url.openStream();
        try {
            Loader loader = findLoader(url);
            loader.load(result, stream);
        } finally {
            stream.close();
        }
    }
View Full Code Here

Examples of org.alex73.tv.lib.Loader

            if (newStorage != null) {
                Main.showFirst(newStorage);
            }
        } else if (c == cmdLoad) {
            save();
            loader = new Loader(txtUser.getString(), txtPass.getString(), logger, Main.APP_NAME, new HttpProviderImpl(), new StringHandlerImpl());
            new Thread() {
                public void run() {
                    newStorage = new StorageInRecordStores();
                    afterStart();
                    try {
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.