org.apache.camel.core.osgi
Class OsgiPackageScanClassResolver

java.lang.Object
  extended by org.apache.camel.impl.DefaultPackageScanClassResolver
      extended by org.apache.camel.core.osgi.OsgiPackageScanClassResolver
All Implemented Interfaces:
PackageScanClassResolver

public class OsgiPackageScanClassResolver
extends DefaultPackageScanClassResolver


Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultPackageScanClassResolver
log
 
Constructor Summary
OsgiPackageScanClassResolver(org.osgi.framework.Bundle bundle)
           
OsgiPackageScanClassResolver(org.osgi.framework.BundleContext context)
           
 
Method Summary
 void find(PackageScanFilter test, String packageName, Set<Class<?>> classes)
           
 Set<ClassLoader> getClassLoaders()
          Gets the ClassLoader instances that should be used when scanning for classes.
 
Methods inherited from class org.apache.camel.impl.DefaultPackageScanClassResolver
addClassLoader, addFilter, addIfMatching, customResourceLocator, find, findAnnotated, findAnnotated, findByFilter, findImplementations, getResources, removeFilter, setClassLoaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiPackageScanClassResolver

public OsgiPackageScanClassResolver(org.osgi.framework.Bundle bundle)

OsgiPackageScanClassResolver

public OsgiPackageScanClassResolver(org.osgi.framework.BundleContext context)
Method Detail

getClassLoaders

public Set<ClassLoader> getClassLoaders()
Description copied from interface: PackageScanClassResolver
Gets the ClassLoader instances that should be used when scanning for classes.

Specified by:
getClassLoaders in interface PackageScanClassResolver
Overrides:
getClassLoaders in class DefaultPackageScanClassResolver
Returns:
the class loaders to use

find

public void find(PackageScanFilter test,
                 String packageName,
                 Set<Class<?>> classes)
Overrides:
find in class DefaultPackageScanClassResolver


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