io.datakernel.di.core.InstanceInjector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datakernel-di Show documentation
Show all versions of datakernel-di Show documentation
DataKernel has an extremely lightweight DI with ground-breaking design principles.
It supports nested scopes, singletons, object factories, modules and plugins which
allow to transform graph of dependencies at startup time without any reflection.
The newest version!
package io.datakernel.di.core;
/**
* This is a function which can inject instances into {@link io.datakernel.di.annotation.Inject}
* fields and methods of some already existing object.
* This is so-called 'post-injections' since such injections are not part of object creation.
*
* It has a {@link io.datakernel.di.module.DefaultModule default generator} and
* can only be obtained by depending on it and then requesting it from the {@link Injector injector}.
*/
public interface InstanceInjector {
Key key();
void injectInto(T existingInstance);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy