# File lib/pluginfactory.rb, line 258 258: def loadDerivative( className ) 259: className = className.to_s 260: 261: #PluginFactory::log :debug, "Loading derivative #{className}" 262: 263: # Get the unique part of the derived class name and try to 264: # load it from one of the derivative subdirs, if there are 265: # any. 266: modName = self.getModuleName( className ) 267: self.requireDerivative( modName ) 268: 269: # Check to see if the specified listener is now loaded. If it 270: # is not, raise an error to that effect. 271: unless self.derivatives[ className.downcase ] 272: raise FactoryError, 273: "Couldn't find a %s named '%s'. Loaded derivatives are: %p" % [ 274: self.factoryType, 275: className.downcase, 276: self.derivatives.keys, 277: ], caller(3) 278: end 279: 280: return true 281: end