1 36 package org.ungoverned.moduleloader.search; 37 38 import java.net.URL ; 39 40 import org.ungoverned.moduleloader.Module; 41 import org.ungoverned.moduleloader.ModuleManager; 42 import org.ungoverned.moduleloader.SearchPolicy; 43 44 57 public class SelfContainedSearchPolicy implements SearchPolicy 58 { 59 private ModuleManager m_mgr = null; 60 61 72 public void setModuleManager(ModuleManager mgr) 73 throws IllegalStateException 74 { 75 if (m_mgr == null) 76 { 77 m_mgr = mgr; 78 } 79 else 80 { 81 throw new IllegalStateException ("Module manager is already initialized"); 82 } 83 } 84 85 93 public Class findClass(Module module, String name) 94 { 95 return null; 96 } 97 98 106 public URL findResource(Module module, String name) 107 { 108 return null; 109 } 110 } | Popular Tags |