Uses of Class
org.apache.commons.discovery.tools.SPInterface
Packages that use SPInterface
-
Uses of SPInterface in org.apache.commons.discovery.tools
Methods in org.apache.commons.discovery.tools that return SPInterfaceModifier and TypeMethodDescriptionstatic <T> SPInterface
<T> SPInterface.newSPInterface
(Class<T> provider) Construct object representing Classprovider
.static <T> SPInterface
<T> SPInterface.newSPInterface
(Class<T> provider, Class<?>[] constructorParamClasses, Object[] constructorParams) Construct object representing Classprovider
.static <T> SPInterface
<T> SPInterface.newSPInterface
(Class<T> provider, String propertyName) Construct object representing Classprovider
.static <T> SPInterface
<T> SPInterface.newSPInterface
(Class<T> provider, String propertyName, Class<?>[] constructorParamClasses, Object[] constructorParams) Construct object representing Classprovider
.Methods in org.apache.commons.discovery.tools with parameters of type SPInterfaceModifier and TypeMethodDescriptionstatic <T> String[]
DiscoverClass.discoverClassNames
(SPInterface<T> spi, Properties properties) Discover names of SPI implementation Classes from properties.static <T,
S extends T>
Class<S> DiscoverClass.find
(ClassLoaders loaders, SPInterface<T> spi, PropertiesHolder properties, DefaultClassHolder<T> defaultImpl) Find class implementing SPI.static <T> T
DiscoverSingleton.find
(ClassLoaders loaders, SPInterface<T> spi, PropertiesHolder properties, DefaultClassHolder<T> defaultImpl) Find implementation of 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..).PropertiesHolder.getProperties
(SPInterface<?> spi, ClassLoaders loaders) Returns theProperties
instance, loaded if necessary frompropertiesFileName
.static <T> T
DiscoverClass.newInstance
(ClassLoaders loaders, SPInterface<T> spi, PropertiesHolder properties, DefaultClassHolder<T> defaultImpl) Create new instance of class implementing SPI.static <T,
S extends T>
Enumeration<S> Service.providers
(SPInterface<T> spi, ClassLoaders loaders) This version lets you specify constructor arguments..