A lightweight dependency injection framework for Java
To use FlyDI in your Java project, simply include the following dependency in your project (Maven/Gradle dependency instructions will go here if available).
FlyDI provides a simple way to manage dependencies in your Java application. Just follow these steps:
@ManagedBean.@Inject to mark constructors or setter methods for dependency injection.
@ManagedBean
public class MyService {
private MyRepository repository;
@Inject
public MyService(MyRepository repository) {
this.repository = repository;
}
// or using setter injection
@Inject
public void setRepository(MyRepository repository) {
this.repository = repository;
}
}
Find the full project and documentation on GitHub: FlyDI GitHub Repository