org.apache.camel.core.osgi
Class OsgiFactoryFinder

java.lang.Object
  extended by org.apache.camel.impl.DefaultFactoryFinder
      extended by org.apache.camel.core.osgi.OsgiFactoryFinder
All Implemented Interfaces:
org.apache.camel.spi.FactoryFinder

public class OsgiFactoryFinder
extends org.apache.camel.impl.DefaultFactoryFinder


Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultFactoryFinder
classMap
 
Constructor Summary
OsgiFactoryFinder(org.osgi.framework.BundleContext bundleContext, org.apache.camel.spi.ClassResolver classResolver, String resourcePath)
           
 
Method Summary
 Class<?> findClass(String key, String propertyPrefix)
           
 Class<?> findClass(String key, String propertyPrefix, Class<?> checkClass)
           
 org.apache.camel.core.osgi.OsgiFactoryFinder.BundleEntry getResource(String name)
           
 org.apache.camel.core.osgi.OsgiFactoryFinder.BundleEntry getResource(String name, Class<?> clazz)
           
 
Methods inherited from class org.apache.camel.impl.DefaultFactoryFinder
findClass, getResourcePath, newInstance, newInstances
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiFactoryFinder

public OsgiFactoryFinder(org.osgi.framework.BundleContext bundleContext,
                         org.apache.camel.spi.ClassResolver classResolver,
                         String resourcePath)
Method Detail

findClass

public Class<?> findClass(String key,
                          String propertyPrefix,
                          Class<?> checkClass)
                   throws ClassNotFoundException,
                          IOException
Specified by:
findClass in interface org.apache.camel.spi.FactoryFinder
Overrides:
findClass in class org.apache.camel.impl.DefaultFactoryFinder
Throws:
ClassNotFoundException
IOException

findClass

public Class<?> findClass(String key,
                          String propertyPrefix)
                   throws ClassNotFoundException,
                          IOException
Specified by:
findClass in interface org.apache.camel.spi.FactoryFinder
Overrides:
findClass in class org.apache.camel.impl.DefaultFactoryFinder
Throws:
ClassNotFoundException
IOException

getResource

public org.apache.camel.core.osgi.OsgiFactoryFinder.BundleEntry getResource(String name)

getResource

public org.apache.camel.core.osgi.OsgiFactoryFinder.BundleEntry getResource(String name,
                                                                            Class<?> clazz)


Apache Camel