Skip to content

Commit

Permalink
[#1596] DOC: add package-info.java to all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Feb 23, 2022
1 parent fd758b1 commit 4d32f62
Show file tree
Hide file tree
Showing 10 changed files with 86 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Provides classes and interfaces that form a framework for creating picocli annotation processors.
*/
package picocli.codegen.annotation.processing;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Provides tools for generating GraalVM configuration files from a picocli CommandSpec model.
*/
package picocli.codegen.aot.graalvm;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Provides an annotation processor that generates GraalVM configuration files based on a picocli CommandSpec model.
*/
package picocli.codegen.aot.graalvm.processor;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* Provides tools for generating man-page documentation in AsciiDoc format from a picocli CommandSpec model.
* These AsciiDoc files are in a special format that can be converted to HTML, PDF and Unix Man pages.
*/
package picocli.codegen.docgen.manpage;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Provides utility classes for internal use in the picocli-codegen module.
*/
package picocli.codegen.util;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* Provides classes and annotations to give Groovy scripts convenient access to picocli functionality.
* Provides classes and interfaces for integrating picocli with Groovy.
*/
package picocli.groovy;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Provides classes and interfaces for integrating picocli with JLine 2.
*/
package picocli.shell.jline2;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Provides classes and interfaces for integrating picocli with JLine 3.
*/
package picocli.shell.jline3;
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/**
* Provides classes and interfaces for picocli Spring Boot Auto-configuration.
* <p>
* The existence of this class allows Spring to auto-configure any fields of
* type {@code picocli.CommandLine.IFactory} in a {@code @org.springframework.stereotype.Component}-annotated class.
* See the example below.
* </p>
* <pre>
* import picocli.CommandLine;
* import picocli.CommandLine.IFactory;
*
* import org.springframework.boot.CommandLineRunner;
* import org.springframework.boot.ExitCodeGenerator;
* import org.springframework.stereotype.Component;
*
* &#64;Component
* public class MyApplicationRunner implements CommandLineRunner, ExitCodeGenerator {
*
* private final MyCommand myCommand;
*
* private final IFactory factory; // auto-configured to inject PicocliSpringFactory
*
* private int exitCode;
*
* public MyApplicationRunner(MyCommand myCommand, IFactory factory) {
* this.myCommand = myCommand;
* this.factory = factory;
* }
*
* &#64;Override
* public void run(String... args) throws Exception {
* exitCode = new CommandLine(myCommand, factory).execute(args);
* }
*
* &#64;Override
* public int getExitCode() {
* return exitCode;
* }
* }
* </pre>
*/
package picocli.spring.boot.autoconfigure;
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Provides classes and interfaces for integrating picocli with Spring Boot.
* <p>
* Picocli instantiates objects at initialization time, using a {@link picocli.CommandLine.IFactory}.
* This package provides a factory implementation that looks up objects in Spring's ApplicationContext.
* When picocli uses this factory to instantiate subcommands, type converters, and other
* picocli components, this factory will use Spring's ApplicationContext
* to instantiate classes that are annotated with
* {@code @org.springframework.stereotype.Component}.
* This ensures that {@code @javax.inject.Inject} or {@code @Autowired}-annotated
* beans in those picocli components are injected by Spring.
* </p>
*/
package picocli.spring;

0 comments on commit 4d32f62

Please sign in to comment.