Fix Javadoc link syntax plus polishing

This commit is contained in:
Sam Brannen 2022-08-04 13:52:40 +03:00
parent 9fea0be33e
commit 31503df415
2 changed files with 21 additions and 17 deletions

View File

@ -27,9 +27,11 @@ import org.springframework.util.ClassUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
/** /**
* Generate unique class names based on target {@link Class} and a feature * Generate unique class names based on a target {@link Class} and a feature
* name. This class is stateful so the same instance should be used for all * name.
* name generation. *
* <p>This class is stateful, so the same instance should be used for all name
* generation.
* *
* @author Phillip Webb * @author Phillip Webb
* @author Stephane Nicoll * @author Stephane Nicoll
@ -134,7 +136,7 @@ public final class ClassNameGenerator {
/** /**
* Return a new {@link ClassNameGenerator} instance for the specified * Create a new {@link ClassNameGenerator} instance for the specified
* feature name prefix, keeping track of all the class names generated * feature name prefix, keeping track of all the class names generated
* by this instance. * by this instance.
* @param featureNamePrefix the feature name prefix to use * @param featureNamePrefix the feature name prefix to use

View File

@ -27,10 +27,10 @@ import org.springframework.aot.hint.SerializationHints;
* *
* <p>A generation context provides: * <p>A generation context provides:
* <ul> * <ul>
* <li>Management of all {@link #getGeneratedClasses()} generated classes}, * <li>Management of all {@linkplain #getGeneratedClasses() generated classes},
* including naming convention support.</li> * including naming convention support.</li>
* <li>Central management of all {@link #getGeneratedFiles() generated files}.</li> * <li>Central management of all {@linkplain #getGeneratedFiles() generated files}.</li>
* <li>Support for the recording of {@link #getRuntimeHints() runtime hints}.</li> * <li>Support for recording {@linkplain #getRuntimeHints() runtime hints}.</li>
* </ul> * </ul>
* *
* <p>If a dedicated round of code generation is required while processing, it * <p>If a dedicated round of code generation is required while processing, it
@ -43,32 +43,34 @@ import org.springframework.aot.hint.SerializationHints;
public interface GenerationContext { public interface GenerationContext {
/** /**
* Return the {@link GeneratedClasses} being used by the context. All * Get the {@link GeneratedClasses} used by the context.
* generated classes are written at the end of AOT processing. * <p>All generated classes are written at the end of AOT processing.
* @return the generated classes * @return the generated classes
*/ */
GeneratedClasses getGeneratedClasses(); GeneratedClasses getGeneratedClasses();
/** /**
* Return the {@link GeneratedFiles} being used by the context. Used to * Get the {@link GeneratedFiles} used by the context.
* write resource, java source or class bytecode files. * <p>Used to write resource, java source, or class bytecode files.
* @return the generated files * @return the generated files
*/ */
GeneratedFiles getGeneratedFiles(); GeneratedFiles getGeneratedFiles();
/** /**
* Return the {@link RuntimeHints} being used by the context. Used to record * Get the {@link RuntimeHints} used by the context.
* {@link ReflectionHints reflection}, {@link ResourceHints resource}, * <p>Used to record {@linkplain ReflectionHints reflection},
* {@link SerializationHints serialization} and {@link ProxyHints proxy} * {@linkplain ResourceHints resource}, {@linkplain SerializationHints
* hints so that the application can run as a native image. * serialization}, and {@linkplain ProxyHints proxy} hints so that the
* application can run as a native image.
* @return the runtime hints * @return the runtime hints
*/ */
RuntimeHints getRuntimeHints(); RuntimeHints getRuntimeHints();
/** /**
* Return a new {@link GenerationContext} instance using the specified * Create a new {@link GenerationContext} instance using the specified
* name to qualify generated assets for a dedicated round of code * name to qualify generated assets for a dedicated round of code
* generation. If this name is already in use, a unique sequence is added * generation.
* <p>If the specified name is already in use, a unique sequence is added
* to ensure the name is unique. * to ensure the name is unique.
* @param name the name to use * @param name the name to use
* @return a specialized {@link GenerationContext} for the specified name * @return a specialized {@link GenerationContext} for the specified name