public interface AutoBeanFactory
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); }
Modifier and Type | Interface and Description |
---|---|
static interface |
AutoBeanFactory.Category
Allows non-property methods on simple bean implementations when applied.
|
static interface |
AutoBeanFactory.NoWrap
The types specified by this annotation will not be wrapped by an AutoBean
when returned from an AutoBean-controlled method.
|
Modifier and Type | Method and Description |
---|---|
<T> AutoBean<T> |
create(java.lang.Class<T> clazz)
Allows dynamic creation of AutoBean instances based on declared
parameterizations.
|
<T,U extends T> |
create(java.lang.Class<T> clazz,
U delegate)
Allows dynamic creation of wrapped AutoBean instances based on declared
parameterizations.
|
<T> AutoBean<T> create(java.lang.Class<T> clazz)
<T,U extends T> AutoBean<T> create(java.lang.Class<T> clazz, U delegate)