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:
FactoryFinder

public class OsgiFactoryFinder
extends DefaultFactoryFinder


Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultFactoryFinder
classMap
 
Constructor Summary
OsgiFactoryFinder(org.osgi.framework.BundleContext bundleContext, ClassResolver classResolver, String resourcePath)
           
 
Method Summary
 Class<?> findClass(String key, String propertyPrefix)
          Finds the given factory class using the the key to lookup.
 org.apache.camel.core.osgi.OsgiFactoryFinder.BundleEntry getResource(String name)
           
 
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,
                         ClassResolver classResolver,
                         String resourcePath)
Method Detail

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 name
propertyPrefix - 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)


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.