Class AbstractResourceFactory
java.lang.Object
org.pentaho.reporting.libraries.resourceloader.factory.AbstractResourceFactory
- All Implemented Interfaces:
ResourceFactory
- Direct Known Subclasses:
DrawableResourceFactory, ImageResourceFactory
Creation-Date: 05.04.2006, 16:58:57
- Author:
- Thomas Morgner
-
Field Summary
Fields inherited from interface ResourceFactory
CONFIG_PREFIX -
Method Summary
Modifier and TypeMethodDescriptioncreate(ResourceManager manager, ResourceData data, ResourceKey context) Creates a resource by interpreting the data given in the resource-data object.Returns the expected result type.voidInitializes the resource factory.booleanregisterModule(String className) voidregisterModule(FactoryModule module)
-
Method Details
-
getFactoryType
Description copied from interface:ResourceFactoryReturns the expected result type.- Specified by:
getFactoryTypein interfaceResourceFactory- Returns:
- the result type.
-
initializeDefaults
public void initializeDefaults()Description copied from interface:ResourceFactoryInitializes the resource factory. This usually loads all system resources from the environment and maybe sets up and initializes any factories needed during the parsing.- Specified by:
initializeDefaultsin interfaceResourceFactory
-
registerModule
-
registerModule
-
create
public Resource create(ResourceManager manager, ResourceData data, ResourceKey context) throws ResourceCreationException, ResourceLoadingException Description copied from interface:ResourceFactoryCreates a resource by interpreting the data given in the resource-data object. If additional datastreams need to be parsed, the provided resource manager should be used.- Specified by:
createin interfaceResourceFactory- Parameters:
manager- the resource manager used for all resource loading.data-context-- Returns:
- Throws:
ResourceCreationExceptionResourceLoadingException
-