Package net.solarnetwork.node.setup
Interface SetupResourceService
- All Known Implementing Classes:
SimpleSetupResourceService
public interface SetupResourceService
API for a centrally managed manager of
SetupResource instances.- Version:
- 1.0
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptiongetSetupResource(String resourceUID, Locale locale) Get a specific resource for a resource UID.getSetupResourcesForConsumer(String consumerType, Locale locale) Get a set of resources for a specific consumer type.
-
Method Details
-
getSetupResource
Get a specific resource for a resource UID.- Parameters:
resourceUID- The ID of the resource to get.locale- The desired locale.- Returns:
- The resource, or null if not available.
-
getSetupResourcesForConsumer
Get a set of resources for a specific consumer type.- Parameters:
consumerType- The consumer type to get resources for.locale- The desired locale.- Returns:
- All matching resources, never null.
-