org.mentabean
Class BeanManager

java.lang.Object
  extended by org.mentabean.BeanManager

public class BeanManager
extends Object

The manager that keeps track of the configuration for all beans.

Author:
sergio.oliveira.jr@gmail.com

Constructor Summary
BeanManager()
           
 
Method Summary
 void addBeanConfig(BeanConfig bc)
          Add a bean configuration.
 BeanConfig bean(BeanConfig bc)
          Add a bean configuration.
 BeanConfig bean(Class<? extends Object> beanClass, String tableName)
          Creates a bean configuration and add to this manager.
 BeanConfig getBeanConfig(Class<? extends Object> beanClass)
          Get the bean configuration for the given bean class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanManager

public BeanManager()
Method Detail

bean

public BeanConfig bean(BeanConfig bc)
Add a bean configuration.

Parameters:
bc - The bean configuration to add.
Returns:
The BeanConfig added (Fluent API)

addBeanConfig

public void addBeanConfig(BeanConfig bc)
Add a bean configuration.

Parameters:
bc - The bean configuration to add.

bean

public BeanConfig bean(Class<? extends Object> beanClass,
                       String tableName)
Creates a bean configuration and add to this manager.

Parameters:
beanClass - The bean class
tableName - The table name where the bean properties will be stored.
Returns:
The BeanConfig created (Fluent API)

getBeanConfig

public BeanConfig getBeanConfig(Class<? extends Object> beanClass)
Get the bean configuration for the given bean class.

Parameters:
beanClass - The bean class
Returns:
The bean configuration for this bean or null if it was not defined


Copyright © 2011. All Rights Reserved.