|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.discovery.tools.SPInterface
public class 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 Summary | |
---|---|
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 . |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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
DiscoveryException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
public void verifyAncestory(java.lang.Class impl)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |