public interface

AutoBeanFactory

com.google.gwt.autobean.shared.AutoBeanFactory
Known Indirect Subclasses

Class Overview

A tag interface for the AutoBean generator. Instances of AutoBeans are created by declaring factory methods on a subtype of this interface.

Simple interfaces, consisting of only getters and setters, can be constructed with a no-arg method. Non-simple interfaces must provide a delegate object to implement a non-simple interface or use a AutoBeanFactory.Category.

 interface MyFactory extends AutoBeanFactory {
   // A factory method for a simple bean
   AutoBean<BeanInterface> beanInterface();
   // A factory method for a wrapper bean
   AutoBean<ArbitraryInterface> wrapper(ArbitraryInterface delegate);
 }
 

Summary

Nested Classes
@interface AutoBeanFactory.Category Allows non-property methods on simple bean implementations when applied. 
@interface AutoBeanFactory.NoWrap The types specified by this annotation will not be wrapped by an AutoBean when returned from an AutoBean-controlled method. 
Public Methods
abstract <T, U extends T> AutoBean<T> create(Class<T> clazz, U delegate)
Allows dynamic creation of wrapped AutoBean instances based on declared parameterizations.
abstract <T> AutoBean<T> create(Class<T> clazz)
Allows dynamic creation of AutoBean instances based on declared parameterizations.

Public Methods

public abstract AutoBean<T> create (Class<T> clazz, U delegate)

Allows dynamic creation of wrapped AutoBean instances based on declared parameterizations.

Parameters
clazz the Class of type T of the new instance
delegate a delegate that extends type T
Returns
  • an AutoBean of type T or null if the interface type is unknown to the factory

public abstract AutoBean<T> create (Class<T> clazz)

Allows dynamic creation of AutoBean instances based on declared parameterizations.

Parameters
clazz the Class of type T of the new instance
Returns
  • an AutoBean of type T or null if the interface type is unknown to the factory