@Singleton public class FeatureService extends java.lang.Object implements FeatureOperations
FeatureOperations
interface.Constructor and Description |
---|
FeatureService(java.util.List<Feature> features,
io.micronaut.context.BeanLocator beanLocator,
io.micronaut.context.MessageSource messageSource)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<FeatureDTO> |
getAllFeatures(java.util.Locale locale)
List all the available features.
|
java.util.List<FeatureDTO> |
getFeatures(java.util.Locale locale,
ApplicationType type)
A list of features applicable to the given application type.
|
public FeatureService(java.util.List<Feature> features, io.micronaut.context.BeanLocator beanLocator, io.micronaut.context.MessageSource messageSource)
features
- The featuresbeanLocator
- The bean locatorpublic java.util.List<FeatureDTO> getAllFeatures(java.util.Locale locale)
FeatureOperations
getAllFeatures
in interface FeatureOperations
locale
- The localepublic java.util.List<FeatureDTO> getFeatures(java.util.Locale locale, ApplicationType type)
FeatureOperations
getFeatures
in interface FeatureOperations
locale
- The localetype
- The type