Class AutoBeanFactorySource
java.lang.Object
com.google.web.bindery.autobean.vm.AutoBeanFactorySource
Generates JVM-compatible implementations of AutoBeanFactory and AutoBean
types.
This implementation is written assuming that the AutoBeanFactory and associated declarations will validate if compiled and used with the AutoBeanFactoyModel.
This is experimental, unsupported code.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <F extends AutoBeanFactory>
FCreate an instance of an AutoBeanFactory.static <T> AutoBean
<T> createBean
(Class<T> clazz, Configuration configuration) Create an instance of an AutoBean directly.
-
Constructor Details
-
AutoBeanFactorySource
public AutoBeanFactorySource()
-
-
Method Details
-
create
Create an instance of an AutoBeanFactory.- Type Parameters:
F
- the factory type- Parameters:
clazz
- the Class representing the factory interface- Returns:
- an instance of the AutoBeanFactory
-
createBean
Create an instance of an AutoBean directly.- Type Parameters:
T
- the interface type implemented by the AutoBean- Parameters:
clazz
- the interface type implemented by the AutoBean- Returns:
- an instance of an AutoBean
-