public final class PVFactoryProvider extends Object
| Modifier and Type | Method and Description |
|---|---|
PVFactory |
getDefaultFactory()
Search the registry for all services that implement
PVFactory. |
PVFactory |
getFactory(String clazz)
Returns an instance of the factory with the given name.
|
static PVFactoryProvider |
getInstance()
Returns the singleton instance of the factory provider.
|
public static PVFactoryProvider getInstance()
public PVFactory getDefaultFactory()
PVFactory. It returns the first factory that it
encounters. In general there should never be more than one.PVFactory instancepublic PVFactory getFactory(String clazz) throws ClassNotFoundException, InstantiationException, IllegalAccessException
clazz - the class name to loadClassNotFoundException - in case the class cannot be foundInstantiationException - in case the factory cannot be instantiatedIllegalAccessException - in case the factory cannot be instantiatedCopyright © 2023 European Spallation Source. All rights reserved.