protected static class FactoryFinder.StandaloneObjectFactory extends Object implements FactoryFinder.ObjectFactory
| Modifier | Constructor and Description |
|---|---|
protected |
FactoryFinder.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) |
protected FactoryFinder.StandaloneObjectFactory()
public Object create(String path) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException, ResourceNotFoundException
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.public static Class<?> loadClass(Properties properties) throws ClassNotFoundException, IOException
ClassNotFoundExceptionIOExceptionpublic static Properties loadProperties(String uri) throws IOException, ResourceNotFoundException
IOExceptionResourceNotFoundExceptionCopyright © 2013–2016 The Apache Software Foundation. All rights reserved.