net.sf.parcinj.bl
Class BeanCompiler

java.lang.Object
  extended by net.sf.parcinj.bl.BeanCompiler

public class BeanCompiler
extends java.lang.Object

Compiler for a simple bean language which allows to create Java objects via constructors, static methods, or by using setters.


Constructor Summary
BeanCompiler()
           
 
Method Summary
static java.lang.Object compile(java.lang.reflect.Type beanType, java.lang.String description)
          Creates a new object of specified type in accordance with the specified description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanCompiler

public BeanCompiler()
Method Detail

compile

public static java.lang.Object compile(java.lang.reflect.Type beanType,
                                       java.lang.String description)
Creates a new object of specified type in accordance with the specified description.

Parameters:
beanType - Type of the returned bean (e.g. a Class).
description - Description of the bean in terms of the simple bean language.
Returns:
freshly created bean.