Module com.github.rvesse.airline
Class CommonSectionsFactory
- java.lang.Object
-
- com.github.rvesse.airline.help.sections.factories.CommonSectionsFactory
-
- All Implemented Interfaces:
HelpSectionFactory
public class CommonSectionsFactory extends java.lang.Object implements HelpSectionFactory
A help section factory that implements the common sections built into Airline
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>>SUPPORTED
-
Constructor Summary
Constructors Constructor Description CommonSectionsFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HelpSectioncreateSection(java.lang.annotation.Annotation annotation)Tries to create a section from the given annotationjava.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>>supportedAnnotations()Gets a list of the supported annotations
-
-
-
Method Detail
-
createSection
public HelpSection createSection(java.lang.annotation.Annotation annotation)
Description copied from interface:HelpSectionFactoryTries to create a section from the given annotation- Specified by:
createSectionin interfaceHelpSectionFactory- Parameters:
annotation- Annotation- Returns:
- Help section or
nullif the annotation is not supported
-
supportedAnnotations
public java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> supportedAnnotations()
Description copied from interface:HelpSectionFactoryGets a list of the supported annotations- Specified by:
supportedAnnotationsin interfaceHelpSectionFactory- Returns:
- Supported annotations
-
-