org.apache.camel.core.osgi
Class OsgiFactoryFinder
java.lang.Object
org.apache.camel.impl.DefaultFactoryFinder
org.apache.camel.core.osgi.OsgiFactoryFinder
- All Implemented Interfaces:
- FactoryFinder
public class OsgiFactoryFinder
- extends DefaultFactoryFinder
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OsgiFactoryFinder
public OsgiFactoryFinder(org.osgi.framework.BundleContext bundleContext,
ClassResolver classResolver,
String resourcePath)
findClass
public Class<?> findClass(String key,
String propertyPrefix)
throws ClassNotFoundException,
IOException
- Description copied from interface:
FactoryFinder
- Finds the given factory class using the the key to lookup.
- Specified by:
findClass in interface FactoryFinder- Overrides:
findClass in class DefaultFactoryFinder
- Parameters:
key - is the key to add to the path to find a text file containing the factory namepropertyPrefix - prefix on key
- Returns:
- the factory class
- Throws:
ClassNotFoundException - is thrown if not found
IOException - is thrown if loading the class or META-INF file not found
getResource
public org.apache.camel.core.osgi.OsgiFactoryFinder.BundleEntry getResource(String name)
Apache CAMEL