com.google.gwt.autobean.server
Class AutoBeanFactoryMagic
java.lang.Object
com.google.gwt.autobean.server.AutoBeanFactoryMagic
public class AutoBeanFactoryMagic
- extends java.lang.Object
Generates JVM-compatible implementations of AutoBeanFactory and AutoBean
types.
This implementation is written assuming that the AutoBeanFactory and
associated declarations will validate if compiled and used with the
AutoBeanFactoyModel.
Method Summary |
static
|
create(java.lang.Class<F> clazz)
Create an instance of an AutoBeanFactory. |
static
|
createBean(java.lang.Class<T> clazz,
Configuration configuration)
Create an instance of an AutoBean directly. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoBeanFactoryMagic
public AutoBeanFactoryMagic()
create
public static <F extends AutoBeanFactory> F create(java.lang.Class<F> clazz)
- Create an instance of an AutoBeanFactory.
- Type Parameters:
F
- the factory type- Parameters:
clazz
- the Class representing the factory interface
- Returns:
- an instance of the AutoBeanFactory
createBean
public static <T> AutoBean<T> createBean(java.lang.Class<T> clazz,
Configuration configuration)
- Create an instance of an AutoBean directly.
- Type Parameters:
T
- the interface type implemented by the AutoBean- Parameters:
clazz
- the interface type implemented by the AutoBean
- Returns:
- an instance of an AutoBean