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