Changeset 30829

Show
Ignore:
Timestamp:
22.09.2016 11:53:54 (3 years ago)
Author:
kjdon
Message:

renamed CollectionClassLoader? to CustomClassLoader? as now I want to use it also for a site. So now pass in the appropriate resources dir, instead of the site home and collection name

Files:
1 moved

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/CustomClassLoader.java

    r26264 r30829  
    11/* 
    2  *    CollectionClassLoader.java 
     2 *    CustomClassLoader.java 
    33 *    Copyright (C) 2005 New Zealand Digital Library, http://www.nzdl.org 
    44 * 
     
    2525 
    2626/** 
    27  * Looks for classes/resources in the collection resources directory 
     27 * Looks for classes/resources in the specified resources_dir directory 
    2828 */ 
    29 public class CollectionClassLoader extends ClassLoader 
     29public class CustomClassLoader extends ClassLoader 
    3030{ 
    3131 
    3232    String base_dir = null; 
    3333 
    34     public CollectionClassLoader(ClassLoader parent, String site_home, String collection_name) 
     34  public CustomClassLoader(ClassLoader parent, String resources_dir) 
    3535    { 
    3636        super(parent); 
    37         // 'resources directory' in the collection 
    38         this.base_dir = GSFile.collectionResourceDir(site_home, collection_name); 
     37        this.base_dir = resources_dir;  
    3938    } 
    4039