Interface ResourceManagerBackend
- All Known Implementing Classes:
DefaultResourceManagerBackend
public interface ResourceManagerBackend
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(ResourceManager frontEnd, ResourceData key, ResourceKey context, Class[] target) createKey
(Object data, Map<? extends ParameterKey, ? extends Object> parameters) deriveKey
(ResourceKey parent, String path, Map<? extends ParameterKey, ? extends Object> parameters) deserialize
(ResourceKey bundleKey, String serializedKey) boolean
isResourceUnchanged
(ResourceManager resourceManager, Resource resource) loadRawData
(ResourceManager frontEnd, ResourceKey key) loadResourceBundle
(ResourceManager frontEnd, ResourceKey key) void
void
void
void
registerFactory
(ResourceFactory factory) void
registerLoader
(ResourceLoader loader) serialize
(ResourceKey bundleKey, ResourceKey key) toURL
(ResourceKey key)
-
Method Details
-
createKey
ResourceKey createKey(Object data, Map<? extends ParameterKey, ? extends Object> parameters) throws ResourceKeyCreationException- Throws:
ResourceKeyCreationException
-
deriveKey
ResourceKey deriveKey(ResourceKey parent, String path, Map<? extends ParameterKey, ? extends Object> parameters) throws ResourceKeyCreationException- Throws:
ResourceKeyCreationException
-
toURL
-
create
Resource create(ResourceManager frontEnd, ResourceData key, ResourceKey context, Class[] target) throws ResourceLoadingException, ResourceCreationException -
loadResourceBundle
ResourceBundleData loadResourceBundle(ResourceManager frontEnd, ResourceKey key) throws ResourceLoadingException - Throws:
ResourceLoadingException
-
registerDefaultFactories
void registerDefaultFactories() -
registerDefaultLoaders
void registerDefaultLoaders() -
registerBundleLoader
-
registerLoader
-
registerFactory
-
loadRawData
ResourceData loadRawData(ResourceManager frontEnd, ResourceKey key) throws ResourceLoadingException, UnrecognizedLoaderException -
isResourceUnchanged
boolean isResourceUnchanged(ResourceManager resourceManager, Resource resource) throws ResourceLoadingException - Throws:
ResourceLoadingException
-
serialize
- Throws:
ResourceException
-
deserialize
ResourceKey deserialize(ResourceKey bundleKey, String serializedKey) throws ResourceKeyCreationException - Throws:
ResourceKeyCreationException
-