Package net.solarnetwork.node.setup
Interface SetupResourceProvider
- All Known Implementing Classes:
PatternMatchingSetupResourceProvider,SimpleSetupResourceProvider
public interface SetupResourceProvider
API for a provider of resource(s) to support
SettingSpecifier clients.- Version:
- 1.0
- Author:
- matt
-
Field Summary
Fields -
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 specific context and content type.
-
Field Details
-
WEB_CONSUMER_TYPE
A consumer type for webapp-based resources.- See Also:
-
-
Method Details
-
getSetupResource
Get a specific resource for a resource UID.- Parameters:
resourceUID- the ID of the resource to getlocale- the desired locale- Returns:
- the resource, or null if not available
-
getSetupResourcesForConsumer
Get a set of resources for specific context and content type. AconsumerTyperepresents the type of application the consumer of the setup resources represents. TheWEB_CONSUMER_TYPErepresents a webapp, for example, and would be interested in resources such as JavaScript, CSS, images, etc.- Parameters:
consumerType- the consumer type to get all appropriate resources for.locale- the desired locale.- Returns:
- all matching resources, never null
-