Initial tests for active object support

This commit is contained in:
Martin Krasser 2010-06-04 17:37:32 +02:00
parent 5402165d85
commit f2e5fb1c0a
13 changed files with 310 additions and 33 deletions

View file

@ -54,6 +54,13 @@ class ActiveObjectInfo(context: CamelContext, clazz: Class[_], strategy: Paramet
extends BeanInfo(context, clazz, strategy) {
protected override def introspect(clazz: Class[_]): Unit = {
// TODO: fix target class detection in BeanInfo.introspect(Class)
// Camel assumes that classes containing a '$$' in the class name
// are classes generated with CGLIB. This conflicts with proxies
// created from interfaces with AspectWerkz. Once the fix is in
// place this method can be removed.
for (method <- clazz.getDeclaredMethods) {
if (isValidMethod(clazz, method)) {
introspect(clazz, method)