|
GWT 2.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface AutoBeanFactory
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); }
AutoBeans has moved to
com.google.web.bindery.autobeans
. This package will be
removed in a future version of GWT.
Nested Class Summary | |
---|---|
static interface |
AutoBeanFactory.Category
Deprecated. |
static interface |
AutoBeanFactory.NoWrap
Deprecated. |
Method Summary | ||
---|---|---|
|
create(java.lang.Class<T> clazz)
Deprecated. Allows dynamic creation of AutoBean instances based on declared parameterizations. |
|
|
create(java.lang.Class<T> clazz,
U delegate)
Deprecated. Allows dynamic creation of wrapped AutoBean instances based on declared parameterizations. |
Method Detail |
---|
<T> AutoBean<T> create(java.lang.Class<T> clazz)
T
- the parameterization of the created AutoBean
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<T,U extends T> AutoBean<T> create(java.lang.Class<T> clazz, U delegate)
T
- the parameterization of the created AutoBean
U
- the delegate's type, a subtype of Tclazz
- the Class of type T of the new instancedelegate
- a delegate that extends type T
AutoBean
of type T or null
if the interface type
is unknown to the factory
|
GWT 2.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |