Changeset 30829 for main/trunk


Ignore:
Timestamp:
2016-09-22T11:53:54+12:00 (8 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

File:
1 moved

Legend:

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

    r30827 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 
Note: See TracChangeset for help on using the changeset viewer.