public static interface FactoryFinder.ObjectFactory
FactoryFinder.setObjectFactory(org.apache.qpid.jms.util.FactoryFinder.ObjectFactory)
method with a custom implementation of ObjectFactory.
The default ObjectFactory is typically changed out when running in a specialized
container environment where service discovery needs to be done via the container system.
For example, in an OSGi scenario.| Modifier and Type | Method and Description |
|---|---|
Object |
create(String path)
Creates the requested factory instance.
|
Object create(String path) throws IllegalAccessException, InstantiationException, IOException, ClassNotFoundException, ResourceNotFoundException, NoSuchMethodException, SecurityException, InvocationTargetException
path - the full service pathIllegalAccessException - if an error occurs while accessing the search path.InstantiationException - if the factory object fails on create.ResourceNotFoundException - if the path does not exist.IOException - if the search encounter an IO error.ClassNotFoundException - if the class that is to be loaded cannot be found.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.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.