/** * Register/bind custom provider instances. Registered providers will be handled * always as Singletons. * * @param instances custom provider instances. */ public void bindInstances(final Iterable<Object> instances) { final DynamicConfiguration dc = Injections.getConfiguration(locator); for (final Object instance : instances) { bindInstance(instance, dc); } dc.commit(); }
/** * Register/bind custom provider instances. Registered providers will be handled * always as Singletons. * * @param instances custom provider instances. */ public void bindInstances(final Iterable<Object> instances) { final DynamicConfiguration dc = Injections.getConfiguration(locator); for (final Object instance : instances) { bindInstance(instance, dc); } dc.commit(); }
/** * Register/bind custom provider instances. Registered providers will be handled * always as Singletons. * * @param instances custom provider instances. */ public void bindInstances(final Iterable<Object> instances) { final DynamicConfiguration dc = Injections.getConfiguration(locator); for (final Object instance : instances) { bindInstance(instance, dc); } dc.commit(); }