/** * Creates a {@link InjectionManager} without parent and initial binder. * * @return a injection manager with all the bindings. */ public static InjectionManager createInjectionManager() { return lookupInjectionManagerFactory().create(); }
/** * Creates an unnamed, parented {@link InjectionManager}. In case the {@code parent} injection manager is not specified, the * locator will not be parented. * * @param parent The parent of this injection manager. Services can be found in the parent (and all grand-parents). May be * {@code null}. An underlying DI provider checks whether the parent is in a proper type. * @return an injection manager with all the bindings. */ public static InjectionManager createInjectionManager(Object parent) { return lookupInjectionManagerFactory().create(parent); }
/** * Creates a {@link InjectionManager} without parent and initial binder. * * @return a injection manager with all the bindings. */ public static InjectionManager createInjectionManager() { return lookupInjectionManagerFactory().create(); }
/** * Creates an unnamed, parented {@link InjectionManager}. In case the {@code parent} injection manager is not specified, the * locator will not be parented. * * @param parent The parent of this injection manager. Services can be found in the parent (and all grand-parents). May be * {@code null}. An underlying DI provider checks whether the parent is in a proper type. * @return an injection manager with all the bindings. */ public static InjectionManager createInjectionManager(Object parent) { return lookupInjectionManagerFactory().create(parent); }
/** * Creates a {@link InjectionManager} with initial binder that is immediately registered. * * @param binder custom the {@link Binder binder}. * @return a injection manager with all the bindings. */ public static InjectionManager createInjectionManager(Binder binder) { InjectionManagerFactory injectionManagerFactory = lookupInjectionManagerFactory(); InjectionManager injectionManager = injectionManagerFactory.create(); injectionManager.register(binder); return injectionManager; }
/** * Creates a {@link InjectionManager} with initial binder that is immediately registered. * * @param binder custom the {@link Binder binder}. * @return a injection manager with all the bindings. */ public static InjectionManager createInjectionManager(Binder binder) { InjectionManagerFactory injectionManagerFactory = lookupInjectionManagerFactory(); InjectionManager injectionManager = injectionManagerFactory.create(); injectionManager.register(binder); return injectionManager; }
/** * Creates a {@link InjectionManager} without parent and initial binder. * * @return a injection manager with all the bindings. */ public static InjectionManager createInjectionManager() { return lookupInjectionManagerFactory().create(); }
/** * Creates an unnamed, parented {@link InjectionManager}. In case the {@code parent} injection manager is not specified, the * locator will not be parented. * * @param parent The parent of this injection manager. Services can be found in the parent (and all grand-parents). May be * {@code null}. An underlying DI provider checks whether the parent is in a proper type. * @return an injection manager with all the bindings. */ public static InjectionManager createInjectionManager(Object parent) { return lookupInjectionManagerFactory().create(parent); }
/** * Creates a {@link InjectionManager} without parent and initial binder. * * @return a injection manager with all the bindings. */ public static InjectionManager createInjectionManager() { return lookupInjectionManagerFactory().create(); }
/** * Creates an unnamed, parented {@link InjectionManager}. In case the {@code parent} injection manager is not specified, the * locator will not be parented. * * @param parent The parent of this injection manager. Services can be found in the parent (and all grand-parents). May be * {@code null}. An underlying DI provider checks whether the parent is in a proper type. * @return an injection manager with all the bindings. */ public static InjectionManager createInjectionManager(Object parent) { return lookupInjectionManagerFactory().create(parent); }
/** * Creates a {@link InjectionManager} with initial binder that is immediately registered. * * @param binder custom the {@link Binder binder}. * @return a injection manager with all the bindings. */ public static InjectionManager createInjectionManager(Binder binder) { InjectionManagerFactory injectionManagerFactory = lookupInjectionManagerFactory(); InjectionManager injectionManager = injectionManagerFactory.create(); injectionManager.register(binder); return injectionManager; }
/** * Creates a {@link InjectionManager} with initial binder that is immediately registered. * * @param binder custom the {@link Binder binder}. * @return a injection manager with all the bindings. */ public static InjectionManager createInjectionManager(Binder binder) { InjectionManagerFactory injectionManagerFactory = lookupInjectionManagerFactory(); InjectionManager injectionManager = injectionManagerFactory.create(); injectionManager.register(binder); return injectionManager; }