User Tools

Site Tools


injector

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
injector [2024/10/21 12:37] datafoxinjector [2024/11/05 09:03] (current) datafox
Line 5: Line 5:
 ===== Important ===== ===== Important =====
  
-Before building the injector with ''InjectorBuilder.build()'', you must first call one of the scan methods. The ''InjectorBuilder.scan()'' method is recommended for most use cases, but if you need specific scan parameters you can use ''InjectorBuilder.load(ScanResult)'', or if your environment (Android, GraalVM) requires build time scanning, you can use ''InjectorBuilder.load(String)'' to load a json-serialized build time scanThe ''BuildTimeScanner'' class can be run with a single argument in the form of a directory path, which outputs a file called ''scan.json'' to that directoryRefer to your build environment’s documentation on how to run the scan.+Before building the injector with ''InjectorBuilder.build()'', you must first call one of the scan methods. The ''InjectorBuilder.scan()'' method is recommended for most use cases, but if you need specific scan parameters or if your environment (Android, GraalVM) requires build time scanning, you can use ''InjectorBuilder.load(ClassHierarchy)''. ''ClassHierarchy'' is a class serializable by any serializer that supports serializing ''Class<T>'' objects, and the scanner makes sure to only include classes that can be retrieved with ''Class.forName(String)''You can generate it with the ''scan()'' methods in ''ClassScanner''.
  
 ===== Dependencies ===== ===== Dependencies =====
injector.1729514231.txt.gz · Last modified: 2024/10/21 12:37 by datafox

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki