Save This Page
Home » commons-discovery-0.4-src » org.apache.commons » discovery » tools » [javadoc | source]
org.apache.commons.discovery.tools
public class: SPInterface [javadoc | source]
java.lang.Object
   org.apache.commons.discovery.tools.SPInterface
Represents a Service Programming Interface (spi). - SPI's name - SPI's (provider) class - SPI's (alternate) override property name In addition, while there are many cases where this is NOT usefull, for those in which it is: - expected constructor argument types and parameters values.
Constructor:
 public SPInterface(Class provider) 
    Construct object representing Class provider.
    Parameters:
    provider - The SPI class
 public SPInterface(Class spi,
    String propertyName) 
    Construct object representing Class provider.
    Parameters:
    spi - The SPI class
    propertyName - when looking for the name of a class implementing the provider class, a discovery strategy may involve looking for (system or other) properties having either the name of the class (provider) or the propertyName.
 public SPInterface(Class provider,
    Class[] constructorParamClasses,
    Object[] constructorParams) 
    Construct object representing Class provider.
    Parameters:
    provider - The SPI class
    constructorParamClasses - classes representing the constructor argument types.
    constructorParams - objects representing the constructor arguments.
 public SPInterface(Class spi,
    String propertyName,
    Class[] constructorParamClasses,
    Object[] constructorParams) 
    Construct object representing Class provider.
    Parameters:
    spi - The SPI class
    propertyName - when looking for the name of a class implementing the provider class, a discovery strategy may involve looking for (system or other) properties having either the name of the class (provider) or the propertyName.
    constructorParamClasses - classes representing the constructor argument types.
    constructorParams - objects representing the constructor arguments.
Method from org.apache.commons.discovery.tools.SPInterface Summary:
getPropertyName,   getSPClass,   getSPName,   newInstance,   verifyAncestory
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.discovery.tools.SPInterface Detail:
 public String getPropertyName() 
 public Class getSPClass() 
 public String getSPName() 
 public Object newInstance(Class impl) throws InvocationTargetException, NoSuchMethodException, DiscoveryException, IllegalAccessException, InstantiationException 
    Instantiate a new
 public  void verifyAncestory(Class impl)