Interface ObjectFactory
-
public interface ObjectFactory
Allows to create an instance from a classname and a set of properties. The implementation handles the coercing if needed. Note that it doesn't reuse the configuration format (for now) since it is intended to be used to convert some configuration (UI) properties to an instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ObjectFactory.ObjectFactoryInstance
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectFactory.ObjectFactoryInstance
createInstance(String className)
Creates an instance builder.
-
-
-
Method Detail
-
createInstance
ObjectFactory.ObjectFactoryInstance createInstance(String className)
Creates an instance builder.- Parameters:
className
- the class of the instance to create.- Returns:
- a builder you can configure before instantiating the instance.
-
-