Skip to content

gcwilliams/simple-ioc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple IOC

A simple IOC container

A very simple IOC written for the fun of it...

  • Constructor injection only
  • No need for annotations

Usage

Create instance... IOCBuilder builder = IOCBuilder.newInstance();

Add bindings... builder.bind(Interface.class).to(Implementation.class);

Build... IOC ioc = builder.build();

Resolve... Interface injected = ioc.resolve(Interface.class);

About

A simple IOC container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages