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
FactoryFinder.ObjectFactory
create
in interface FactoryFinder.ObjectFactory
path
- 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
ClassNotFoundException
IOException
public static Properties loadProperties(String uri) throws IOException, ResourceNotFoundException
IOException
ResourceNotFoundException
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.