- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Delegate extends Service
For more info how to use services, check out the GitHub Wiki.
- Mordechai Meisels
void main(List<String> args) throws ThrowableThe bootstrap's main method, if you start it via the
Bootstrapclass or run update4j as a jar file.
This method is called after dependency injection was performed using any overload of
Bootstrap.start()that takes an
To do any initialization before injection, do it in the constructor, but be aware that unless you specify the delegate with the
--delegateflag, the constructor might be called even if this provider will not be used in the end. This happens as the service loading mechanism first loads all providers and then compares versions to use the one with the highest version.
args- Command line arguments