Package jfun.yan.util.resource

Examples of jfun.yan.util.resource.ClassLoader2ResourceLoader


  /**
   * Create an NutsProcessor object.
   * @param classloader the ClassLoader object to load component classes and resources.
   */
  public NutsProcessor(ClassLoader classloader){
    this(classloader, new ClassLoader2ResourceLoader(classloader));
  }
View Full Code Here


   * found in the config file can be resolved.
   */
  public NutsProcessor(ClassLoader cloader, Container yan,
      DefaultLifecycleManager manager,
      File basedir) {
    this(cloader, new ClassLoader2ResourceLoader(cloader), yan, manager, basedir);
  }
View Full Code Here

   * Create an NutsProcessor object.
   * @param cloader the ClassLoader to load the component classes and resources.
   * @param yan the container that registeres the components.
   */
  public NutsProcessor(ClassLoader cloader, Container yan){
    this(cloader, new ClassLoader2ResourceLoader(cloader), yan);
  }
View Full Code Here

   * </p>
   * @param loader The class loader to load classes and resources.
   * @return the new NutsProcessor object.
   */
  public NutsProcessor createMetaProcessor(ClassLoader loader){
    return createMetaProcessor(loader, new ClassLoader2ResourceLoader(loader));
  }
View Full Code Here

          +" not specified, looking for default "+DEFAULT_CONFIG_FILE);
      config_file = DEFAULT_CONFIG_FILE;
    }

    final ResourceLoader rloader = new ServletContextResourceLoader(ctxt,
        new ClassLoader2ResourceLoader(cloader));
    final InputStream in = rloader.getResourceAsStream(config_file);
    if(in == null){
      ctxt.log("yan configuration file "+config_file+" not found.");
      return null;
    }
View Full Code Here

TOP

Related Classes of jfun.yan.util.resource.ClassLoader2ResourceLoader

Copyright © 2018 www.massapicom. 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.