protected static class FactoryFinder.StandaloneObjectFactory extends Object implements FactoryFinder.ObjectFactory
| Modifier | Constructor and Description |
|---|---|
protected |
StandaloneObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(String path)
Creates the requested factory instance.
|
static Class<?> |
loadClass(Properties properties) |
static Properties |
loadProperties(String uri) |
public Object create(String path) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException, ResourceNotFoundException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
FactoryFinder.ObjectFactorycreate in interface FactoryFinder.ObjectFactorypath - the full service pathInstantiationException - if the factory object fails on create.IllegalAccessException - if an error occurs while accessing the search path.ClassNotFoundException - if the class that is to be loaded cannot be found.IOException - if the search encounter an IO error.ResourceNotFoundException - if the path does not exist.InvocationTargetException - if the constructor of the found factory throws an exceptionNoSuchMethodException - if the factory class found does not have a suitable constructorSecurityException - if a security error occurs trying to create the factory instance.IllegalArgumentExceptionpublic static Class<?> loadClass(Properties properties) throws ClassNotFoundException, IOException
ClassNotFoundExceptionIOExceptionpublic static Properties loadProperties(String uri) throws IOException, ResourceNotFoundException
IOExceptionResourceNotFoundExceptionCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.