|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SPInterface | |
---|---|
org.apache.commons.discovery.tools | Discovery tools implementations. |
Uses of SPInterface in org.apache.commons.discovery.tools |
---|
Methods in org.apache.commons.discovery.tools that return SPInterface | ||
---|---|---|
static
|
SPInterface.newSPInterface(Class<T> provider)
Construct object representing Class provider . |
|
static
|
SPInterface.newSPInterface(Class<T> provider,
Class<?>[] constructorParamClasses,
Object[] constructorParams)
Construct object representing Class provider . |
|
static
|
SPInterface.newSPInterface(Class<T> provider,
String propertyName)
Construct object representing Class provider . |
|
static
|
SPInterface.newSPInterface(Class<T> provider,
String propertyName,
Class<?>[] constructorParamClasses,
Object[] constructorParams)
Construct object representing Class provider . |
Methods in org.apache.commons.discovery.tools with parameters of type SPInterface | ||
---|---|---|
static
|
DiscoverClass.discoverClassNames(SPInterface<T> spi,
Properties properties)
Discover names of SPI implementation Classes from properties. |
|
static
|
DiscoverSingleton.find(ClassLoaders loaders,
SPInterface<T> spi,
PropertiesHolder properties,
DefaultClassHolder<T> defaultImpl)
Find implementation of SPI. |
|
static
|
DiscoverClass.find(ClassLoaders loaders,
SPInterface<T> spi,
PropertiesHolder properties,
DefaultClassHolder<T> defaultImpl)
Find class implementing SPI. |
|
|
DefaultClassHolder.getDefaultClass(SPInterface<T> spi,
ClassLoaders loaders)
Returns the default class, loading it if necessary and verifying that it implements the SPI (this forces the check, no way out..). |
|
Properties |
PropertiesHolder.getProperties(SPInterface<?> spi,
ClassLoaders loaders)
Returns the Properties instance, loaded if necessary from propertiesFileName . |
|
static
|
DiscoverClass.newInstance(ClassLoaders loaders,
SPInterface<T> spi,
PropertiesHolder properties,
DefaultClassHolder<T> defaultImpl)
Create new instance of class implementing SPI. |
|
static
|
Service.providers(SPInterface<T> spi,
ClassLoaders loaders)
This version lets you specify constructor arguments.. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |