public class SPInterface
extends java.lang.Object
| Constructor | Description |
|---|---|
SPInterface(java.lang.Class provider) |
Construct object representing Class
provider. |
SPInterface(java.lang.Class provider,
java.lang.Class[] constructorParamClasses,
java.lang.Object[] constructorParams) |
Construct object representing Class
provider. |
SPInterface(java.lang.Class spi,
java.lang.String propertyName) |
Construct object representing Class
provider. |
SPInterface(java.lang.Class spi,
java.lang.String propertyName,
java.lang.Class[] constructorParamClasses,
java.lang.Object[] constructorParams) |
Construct object representing Class
provider. |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getPropertyName() |
|
java.lang.Class |
getSPClass() |
|
java.lang.String |
getSPName() |
|
java.lang.Object |
newInstance(java.lang.Class impl) |
Instantiate a new
|
void |
verifyAncestory(java.lang.Class impl) |
public SPInterface(java.lang.Class provider)
provider.provider - The SPI classpublic SPInterface(java.lang.Class spi,
java.lang.String propertyName)
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.public SPInterface(java.lang.Class provider,
java.lang.Class[] constructorParamClasses,
java.lang.Object[] constructorParams)
provider.provider - The SPI classconstructorParamClasses - classes representing the
constructor argument types.constructorParams - objects representing the
constructor arguments.public SPInterface(java.lang.Class spi,
java.lang.String propertyName,
java.lang.Class[] constructorParamClasses,
java.lang.Object[] constructorParams)
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.constructorParamClasses - classes representing the
constructor argument types.constructorParams - objects representing the
constructor arguments.public java.lang.String getSPName()
public java.lang.Class getSPClass()
public java.lang.String getPropertyName()
public java.lang.Object newInstance(java.lang.Class impl)
throws DiscoveryException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException
DiscoveryExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetExceptionpublic void verifyAncestory(java.lang.Class impl)
Copyright (c) 2002 - Apache Software Foundation