@Retention(RUNTIME) @Target({FIELD,METHOD}) public static @interface CommandLine.Spec
@Spec
will be initialized with the CommandSpec
for the command the field is part of. Example usage:
class InjectSpecExample implements Runnable { @Spec CommandSpec commandSpec; //... public void run() { // do something with the injected objects } }
Copyright © 2017–2019. All rights reserved.