org.apache.camel.language.bean
Class BeanLanguage

java.lang.Object
  extended by org.apache.camel.language.bean.BeanLanguage
All Implemented Interfaces:
Language

public class BeanLanguage
extends Object
implements Language

A bean language which uses a simple text notation to invoke methods on beans to evaluate predicates or expressions

The notation is essentially beanName.methodName which is then invoked using the beanName to lookup in the bean integration to bind the Exchange to the method arguments.

Version:
$Revision: 47012 $

Constructor Summary
BeanLanguage()
           
 
Method Summary
static Expression bean(String expression)
           
 Expression<Exchange> createExpression(String expression)
           
 Predicate<Exchange> createPredicate(String expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanLanguage

public BeanLanguage()
Method Detail

bean

public static Expression bean(String expression)

createPredicate

public Predicate<Exchange> createPredicate(String expression)
Specified by:
createPredicate in interface Language

createExpression

public Expression<Exchange> createExpression(String expression)
Specified by:
createExpression in interface Language


Copyright © 2008 IONA Open Source Community. All Rights Reserved.