1 25 package org.archive.crawler.settings; 26 27 import java.util.List ; 28 29 import javax.management.InvalidAttributeValueException ; 30 31 36 public class ModuleType extends ComplexType { 37 38 private static final long serialVersionUID = 3686678928531236811L; 39 40 49 public ModuleType(String name, String description) { 50 super(name, description); 51 } 52 53 57 public ModuleType(String name) { 58 super(name, name); 59 } 60 61 public Type addElement(CrawlerSettings settings, Type type) 62 throws InvalidAttributeValueException { 63 if (isInitialized()) { 64 throw new IllegalStateException ( 65 "Not allowed to add elements to modules after" 66 + " initialization. (Module: " + getName() 67 + ", Element: " + type.getName() + ", Settings: " 68 + settings.getName() + " (" + settings.getScope() 69 + ")"); 70 } 71 return super.addElement(settings, type); 72 } 73 74 85 protected void listUsedFiles(List <String > list){ 86 } 88 } | Popular Tags |