Enum Class AgentDocsDistribution
java.lang.Object
java.lang.Enum<AgentDocsDistribution>
io.github.duckasteroid.agentdocs.publish.AgentDocsDistribution
- All Implemented Interfaces:
Serializable,Comparable<AgentDocsDistribution>,Constable
Controls how a project's packaged agent docs are made discoverable to consumers.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCopy the docs into the project's own jar (under a reserved resource path) and advertise them via anAgent-Docs: classpathmanifest attribute.Package the docs as a separateagent-docsclassifier zip attached to Maven publications (the original mechanism), and advertise their existence via anAgent-Docs: mavenmanifest attribute on the main jar. -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentDocsDistributionReturns the enum constant of this class with the specified name.static AgentDocsDistribution[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMBEDDED
Copy the docs into the project's own jar (under a reserved resource path) and advertise them via anAgent-Docs: classpathmanifest attribute. No separate sidecar artifact is published; no Maven-coordinate resolution is required to discover them. -
SIDECAR
Package the docs as a separateagent-docsclassifier zip attached to Maven publications (the original mechanism), and advertise their existence via anAgent-Docs: mavenmanifest attribute on the main jar.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-