org.apache.commons.discovery.tools
Class SPInterface
java.lang.Object
org.apache.commons.discovery.tools.SPInterface
public class SPInterface
extends java.lang.Object
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.
SPInterface(Class provider) - Construct object representing Class
provider .
|
SPInterface(Class spi, String propertyName) - Construct object representing Class
provider .
|
SPInterface(Class spi, String propertyName, constructorParamClasses[] , constructorParams[] ) - Construct object representing Class
provider .
|
SPInterface(Class provider, constructorParamClasses[] , constructorParams[] ) - Construct object representing Class
provider .
|
SPInterface
public SPInterface(Class provider)
Construct object representing Class provider
.
SPInterface
public SPInterface(Class spi,
String propertyName)
Construct object representing Class provider
.
spi
- The SPI classpropertyName
- 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
.
SPInterface
public SPInterface(Class spi,
String propertyName,
constructorParamClasses[] ,
constructorParams[] )
Construct object representing Class provider
.
spi
- The SPI classpropertyName
- 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
.
SPInterface
public SPInterface(Class provider,
constructorParamClasses[] ,
constructorParams[] )
Construct object representing Class provider
.
getPropertyName
public String getPropertyName()
getSPClass
public Class getSPClass()
getSPName
public String getSPName()
newInstance
public Object newInstance(Class impl)
throws DiscoveryException,
InstantiationException,
IllegalAccessException,
NoSuchMethodException,
InvocationTargetException
Instantiate a new
verifyAncestory
public void verifyAncestory(Class impl)
Copyright (c) 2002 - Apache Software Foundation