Package io.micronaut.starter.api
Class FeatureDTO
java.lang.Object
io.micronaut.starter.api.Linkable
io.micronaut.starter.api.FeatureDTO
- All Implemented Interfaces:
io.micronaut.core.naming.Described
,io.micronaut.core.naming.Named
@Introspected
public class FeatureDTO
extends Linkable
implements io.micronaut.core.naming.Named, io.micronaut.core.naming.Described
Represents an application feature.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionFeatureDTO
(Feature feature, io.micronaut.context.MessageSource messageSource, io.micronaut.context.MessageSource.MessageContext messageContext) Default constructor.FeatureDTO
(String name, String title, String description, String category, boolean preview, boolean community) Default constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
-
Constructor Details
-
FeatureDTO
public FeatureDTO(Feature feature, io.micronaut.context.MessageSource messageSource, io.micronaut.context.MessageSource.MessageContext messageContext) Default constructor.- Parameters:
feature
- The featuremessageSource
- The message sourcemessageContext
- The messageContext
-
FeatureDTO
@Creator public FeatureDTO(String name, String title, String description, String category, boolean preview, boolean community) Default constructor.- Parameters:
name
- The nametitle
- The titledescription
- The descriptioncategory
- The category
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micronaut.core.naming.Named
- Returns:
- The name of the feature
-
getTitle
- Returns:
- The title of the feature
-
getDescription
- Specified by:
getDescription
in interfaceio.micronaut.core.naming.Described
- Returns:
- The description of the feature
-
getCategory
- Returns:
- The category to which this feature belongs to
-
isPreview
public boolean isPreview()- Returns:
- Is the feature a preview status feature
-
isCommunity
public boolean isCommunity()- Returns:
- Is the feature a community contributed feature.
-