Package net.solarnetwork.node.setup
Class SimpleSetupResourceService
java.lang.Object
net.solarnetwork.node.setup.SimpleSetupResourceService
- All Implemented Interfaces:
SetupResourceService
Basic implementation of
SetupResourceService.- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSetupResource(String resourceUID, Locale locale) Get a specific resource for a resource UID.Get the setup resource providers.getSetupResourcesForConsumer(String consumerType, Locale locale) Get a set of resources for a specific consumer type.voidsetSetupResourceProviders(Collection<SetupResourceProvider> setupResourceProviders) Set the setup resource providers.
-
Constructor Details
-
SimpleSetupResourceService
public SimpleSetupResourceService()
-
-
Method Details
-
getSetupResource
Description copied from interface:SetupResourceServiceGet a specific resource for a resource UID.- Specified by:
getSetupResourcein interfaceSetupResourceService- Parameters:
resourceUID- The ID of the resource to get.locale- The desired locale.- Returns:
- The resource, or null if not available.
-
getSetupResourcesForConsumer
Description copied from interface:SetupResourceServiceGet a set of resources for a specific consumer type.- Specified by:
getSetupResourcesForConsumerin interfaceSetupResourceService- Parameters:
consumerType- The consumer type to get resources for.locale- The desired locale.- Returns:
- All matching resources, never null.
-
getSetupResourceProviders
Get the setup resource providers.- Returns:
- the providers
-
setSetupResourceProviders
Set the setup resource providers.- Parameters:
setupResourceProviders- the providers to set
-