← Back to DAGDA | Support | Source: https://github.com/sting-ioc/sting
Skip to content
sting-iocPublic

About

A fast, easy to use, compile-time dependency injection toolkit

Topics

Resources

Code of conduct

Contributing

Stars

11 stars

Watchers

3 watching

Forks

Latest commit

 

History

1,796 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sting

Sting

codecov

Sting is a fast, easy to use, compile-time dependency injection toolkit. The toolkit accepts a set of annotated java classes and generates source code to instantiate and wire together the components. Sting can generate injectors, fragments, auto-fragments, dependency-injected factories, and service-interface interceptor proxies. Library and generated contracts use JSpecify; see the nullness documentation.

Sting is under heavy development, and sometimes the documentation does not keep up to date. However the goal of the toolkit is to be easy to use, and this includes clear and concise documentation. If something is unclear please report it as a bug because it is a bug. If a new user has a hard time, then we need to fix the problem.

For more information about Sting, please see the Website. For the source code and project support, please visit the GitHub project.

Bazel Dependencies

Use @sting//:core and @sting//:server in Java deps, @sting//:core-j2cl in J2CL deps, and @sting//:processor in plugins. Java products use the Maven release JARs; the shared J2CL library compiles the checked core source archive. Tests that instantiate the processor use @sting//:processor_runtime. See Bazel setup for module overrides and toolchain configuration.

Development

Use Bazel 9.3.1 and JDK 21 or newer for the build, including the documentation site. Run bazel test //:all_tests for tests and tools/check.sh for the full check. See the development process for focused processor tests, goldens, and releases. Run bazel run //tools/ahab:hermeticity for the hermeticity report; the full check guards its recorded baseline.

Contributing

The project was released as open source so others could benefit from the project. We are thankful for any contributions from the community. A Code of Conduct has been put in place and a Contributing document is under development.

License

Sting is licensed under Apache License, Version 2.0.

Credit

  • Stock Software for some support maintaining the library.

  • Dagger proved that this technique was possible and provided the ideas that kick-started development.

  • javax.inject or the JSR-330 Dependency Injection standard for Java defines the standard injection API. This is not used by Sting but directly influenced much of the API.

About

A fast, easy to use, compile-time dependency injection toolkit

Topics

Resources

Code of conduct

Contributing

Stars

11 stars

Watchers

3 watching

Forks

Releases

Used by

Contributors

Languages