com.google.gwt.autobean.shared.AutoBeanFactory |
Known Indirect Subclasses |
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); }
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AutoBeanFactory.Category | Allows non-property methods on simple bean implementations when applied. | ||||||||||
AutoBeanFactory.NoWrap | The types specified by this annotation will not be wrapped by an AutoBean when returned from an AutoBean-controlled method. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Allows dynamic creation of wrapped AutoBean instances based on declared
parameterizations.
| |||||||||||
Allows dynamic creation of AutoBean instances based on declared
parameterizations.
|
Allows dynamic creation of wrapped AutoBean instances based on declared parameterizations.
clazz | the Class of type T of the new instance |
---|---|
delegate | a delegate that extends type T |
AutoBean
of type T or null
if the interface type
is unknown to the factory
Allows dynamic creation of AutoBean instances based on declared parameterizations.
clazz | the Class of type T of the new instance |
---|
AutoBean
of type T or null
if the interface type
is unknown to the factory