Package com.adobe.granite.contexthub.api
Class Module
java.lang.Object
com.adobe.granite.contexthub.api.Module
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the clientlib categories that should be included for this module.getName()Get the name of this module.getPath()Get the path where this module is defined.Get all properties of this module.Get the resource which describes this module.Get the resourceType of this module.Returns list of run modes in which module should be available.getTheme()Get the theme this module uses.booleanWhether this module should be enabled or not.
-
Constructor Details
-
Module
Constructs a module with properties from the given resource.- Parameters:
resource- the resource used to construct a module from
-
-
Method Details
-
getRunModes
Returns list of run modes in which module should be available.- Returns:
- list of run modes
-
isEnabled
public boolean isEnabled()Whether this module should be enabled or not.- Returns:
trueif this module should be enabled
-
getTheme
Get the theme this module uses.- Returns:
- the theme
-
getName
Get the name of this module.- Returns:
- the name
-
getResourceType
Get the resourceType of this module.- Returns:
- the resourceType
-
getProperties
Get all properties of this module.- Returns:
- the properties
-
getResource
Get the resource which describes this module.- Returns:
- the resource
-
getPath
Get the path where this module is defined.- Returns:
- the path
-
getCategories
Get the clientlib categories that should be included for this module.- Returns:
- the clientlib categories
-