public abstract class

AbstractAutoBeanFactory

extends Object
implements AutoBeanFactory EnumMap
java.lang.Object
   ↳ com.google.gwt.autobean.client.impl.AbstractAutoBeanFactory

Class Overview

Provides base implementations of AutoBeanFactory methods.

Summary

Nested Classes
interface AbstractAutoBeanFactory.Creator Implementations generated by subtypes. 
Fields
protected final Map<Class<?>, AbstractAutoBeanFactory.Creator> creators
protected Map<Enum<?>, String> enumToStringMap
protected Map<StringList<Enum<?>>> stringsToEnumsMap
Public Constructors
AbstractAutoBeanFactory()
Public Methods
<T, U extends T> AutoBean<T> create(Class<T> clazz, U delegate)
Allows dynamic creation of wrapped AutoBean instances based on declared parameterizations.
<T> AutoBean<T> create(Class<T> clazz)
Allows dynamic creation of AutoBean instances based on declared parameterizations.
<E extends Enum<E>> E getEnum(Class<E> clazz, String token)
EnumMap support.
String getToken(Enum<?> e)
EnumMap support.
Protected Methods
abstract void initializeEnumMap()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.autobean.shared.AutoBeanFactory
From interface com.google.gwt.autobean.shared.impl.EnumMap

Fields

protected final Map<Class<?>, AbstractAutoBeanFactory.Creator> creators

protected Map<Enum<?>, String> enumToStringMap

protected Map<StringList<Enum<?>>> stringsToEnumsMap

Public Constructors

public AbstractAutoBeanFactory ()

Public Methods

public 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 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

public E getEnum (Class<E> clazz, String token)

EnumMap support.

public String getToken (Enum<?> e)

EnumMap support.

Protected Methods

protected abstract void initializeEnumMap ()