Interface AutoBeanFactory
- All Known Subinterfaces:
InProcessRequestFactory.Factory,MessageFactory
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);
}
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic @interfaceAllows non-property methods on simple bean implementations when applied.static @interfaceThe types specified by this annotation will not be wrapped by an AutoBean when returned from an AutoBean-controlled method. -
Method Summary
-
Method Details
-
create
Allows dynamic creation of AutoBean instances based on declared parameterizations. -
create
Allows dynamic creation of wrapped AutoBean instances based on declared parameterizations.
-