| java.lang.Object org.apache.commons.discovery.tools.DefaultClassHolder
DefaultClassHolder | public class DefaultClassHolder (Code) | | Holder for a default class.
Class may be specified by name (String) or class (Class).
Using the holder complicates the users job, but minimized # of API's.
author: Richard A. Sitze |
DefaultClassHolder | public DefaultClassHolder(Class defaultClass)(Code) | | |
DefaultClassHolder | public DefaultClassHolder(String defaultName)(Code) | | |
getDefaultClass | public Class getDefaultClass(SPInterface spi, ClassLoaders loaders)(Code) | | Parameters: spi - non-null SPI Parameters: loaders - Used only if class needs to be loaded. Default Class. Load the class if necessary,and verify that it implements the SPI.(this forces the check, no way out..). |
|
|