Package net.officefloor.woof
Class WoofLoaderSettings.WoofLoaderConfiguration
- java.lang.Object
-
- net.officefloor.woof.WoofLoaderSettings.WoofLoaderConfiguration
-
- Enclosing class:
- WoofLoaderSettings
public static class WoofLoaderSettings.WoofLoaderConfiguration extends java.lang.Object
Configuration for theWoofLoader
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getAdditionalProfiles(SourceContext context)
Obtains the additional profiles.WoofExtensionService[]
getContextualWoofExtensionServices()
Contextually addedWoofExtensionService
instances.ConfigurationItem
getObjectsConfiguration(ConfigurationContext context)
Obtains theConfigurationItem
to the objects configuration file.java.util.Properties
getOverrideProperties(SourceContext sourceContext, ConfigurationContext configurationContext)
Obtains the overrideProperties
.ConfigurationItem
getResourcesConfiguration(ConfigurationContext context)
Obtains theConfigurationItem
to the resources configuration file.ConfigurationItem
getTeamsConfiguration(ConfigurationContext context)
Obtains theConfigurationItem
to the teams configuration file.ConfigurationItem
getWoofConfiguration(ConfigurationContext context)
Obtains theConfigurationItem
to the WooF configuration file.boolean
isApplicationWoofAvailable(ConfigurationContext context)
Determines if the WoOF configuration available.boolean
isContextualLoad()
Indicates if contextual load.boolean
isLoadAdditionalProfiles()
Indicates to load the additional profiles.boolean
isLoadHttpServer()
Indicates to load theHttpServer
.boolean
isLoadObjects()
Indicates to load theWoofObjectsModel
configuration.boolean
isLoadOverrideProperties()
Indicates to load the overrideProperties
configuration.boolean
isLoadResources()
Indicates to load theWoofResourcesModel
configuration.boolean
isLoadTeams()
Indicates to load theWoofTeamsModel
configuration.boolean
isLoadWoof()
Indicates to loadWoofModel
configuration.boolean
isLoadWoofExtensions()
Indicates to load theWoofExtensionService
instances.boolean
isWoofApplication(ConfigurationContext context)
Determines if a WoOF application.
-
-
-
Method Detail
-
getWoofConfiguration
public ConfigurationItem getWoofConfiguration(ConfigurationContext context)
Obtains theConfigurationItem
to the WooF configuration file.- Parameters:
context
-ConfigurationContext
.- Returns:
ConfigurationItem
to the application WooF configuration file. May benull
if not found.
-
getObjectsConfiguration
public ConfigurationItem getObjectsConfiguration(ConfigurationContext context)
Obtains theConfigurationItem
to the objects configuration file.- Parameters:
context
-ConfigurationContext
.- Returns:
ConfigurationItem
to the objects configuration file. May benull
if not found.
-
getTeamsConfiguration
public ConfigurationItem getTeamsConfiguration(ConfigurationContext context)
Obtains theConfigurationItem
to the teams configuration file.- Parameters:
context
-ConfigurationContext
.- Returns:
ConfigurationItem
to the teams configuration file. May benull
if not found.
-
getResourcesConfiguration
public ConfigurationItem getResourcesConfiguration(ConfigurationContext context)
Obtains theConfigurationItem
to the resources configuration file.- Parameters:
context
-ConfigurationContext
.- Returns:
ConfigurationItem
to the resources configuration file.
-
getAdditionalProfiles
public java.lang.String[] getAdditionalProfiles(SourceContext context)
Obtains the additional profiles.- Parameters:
context
-SourceContext
.- Returns:
- Additional profiles.
-
getOverrideProperties
public java.util.Properties getOverrideProperties(SourceContext sourceContext, ConfigurationContext configurationContext)
Obtains the overrideProperties
.- Parameters:
sourceContext
-SourceContext
.configurationContext
-ConfigurationContext
.- Returns:
- Override
Properties
.
-
isContextualLoad
public boolean isContextualLoad()
Indicates if contextual load.- Returns:
true
if contextual load.
-
isLoadHttpServer
public boolean isLoadHttpServer()
Indicates to load theHttpServer
.- Returns:
true
to load.
-
isLoadWoof
public boolean isLoadWoof()
Indicates to loadWoofModel
configuration.- Returns:
true
to load.
-
isLoadObjects
public boolean isLoadObjects()
Indicates to load theWoofObjectsModel
configuration.- Returns:
true
to load.
-
isLoadTeams
public boolean isLoadTeams()
Indicates to load theWoofTeamsModel
configuration.- Returns:
true
to load.
-
isLoadResources
public boolean isLoadResources()
Indicates to load theWoofResourcesModel
configuration.- Returns:
true
to load.
-
isLoadAdditionalProfiles
public boolean isLoadAdditionalProfiles()
Indicates to load the additional profiles.- Returns:
true
to load.
-
isLoadOverrideProperties
public boolean isLoadOverrideProperties()
Indicates to load the overrideProperties
configuration.- Returns:
true
to load.
-
isLoadWoofExtensions
public boolean isLoadWoofExtensions()
Indicates to load theWoofExtensionService
instances.- Returns:
true
to load.
-
getContextualWoofExtensionServices
public WoofExtensionService[] getContextualWoofExtensionServices()
Contextually addedWoofExtensionService
instances.- Returns:
true
to load.
-
isWoofApplication
public boolean isWoofApplication(ConfigurationContext context) throws java.io.IOException
Determines if a WoOF application.- Parameters:
context
-ConfigurationContext
.- Returns:
true
if a WoOF application.- Throws:
java.io.IOException
- If fails to check if WoOF application.
-
isApplicationWoofAvailable
public boolean isApplicationWoofAvailable(ConfigurationContext context) throws java.io.IOException
Determines if the WoOF configuration available.- Parameters:
context
-ConfigurationContext
.- Returns:
true
if WoOF configuration available.- Throws:
java.io.IOException
- If fails to check if WoOF application available.
-
-