October 2017
Intermediate to advanced
396 pages
10h 2m
English
The Spring Framework provides the FactoryBean interface as an implementation of the Abstract Factory Pattern. A FactoryBean is a pattern to encapsulate interesting object construction logic in a class. The FactoryBean interface provides a way to customize the Spring IoC container's instantiation logic. You can implement this interface for objects that are themselves factories. Beans implementing FactoryBean are auto-detected.
The definition of this interface is as follows:
public interface FactoryBean<T> {
T getObject() throws Exception;
Class<T> getObjectType();
boolean isSingleton();
}
As per the preceding definition of this interface, the dependency injection ...
Read now
Unlock full access