*
* @author Erik Brakkee
*/
-public class InjectorFactoryBuilder {
+public class InjectorBuilder {
private static InjectorFactory FACTORY;
return FACTORY;
}
- public static SimpleInjector getInjector() {
+ /**
+ * Gets an injector that support injection into any type of object and
+ * performs caching of the injector obtained from the {@link InjectorFactory}.
+ * @return Injector.
+ */
+ public static Injector getInjector() {
getInjectorFactory();
return INJECTOR;
}