Class PropertiesResourceFactory
- java.lang.Object
-
- org.pentaho.reporting.libraries.resourceloader.factory.property.PropertiesResourceFactory
-
- All Implemented Interfaces:
ResourceFactory
public class PropertiesResourceFactory extends java.lang.Object implements ResourceFactory
-
-
Field Summary
-
Fields inherited from interface org.pentaho.reporting.libraries.resourceloader.ResourceFactory
CONFIG_PREFIX
-
-
Constructor Summary
Constructors Constructor Description PropertiesResourceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resourcecreate(ResourceManager manager, ResourceData data, ResourceKey context)Creates a resource by interpreting the data given in the resource-data object.java.lang.ClassgetFactoryType()Returns the expected result type.voidinitializeDefaults()Initializes the resource factory.
-
-
-
Method Detail
-
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- the resource-data from where the binary data is read.context- the resource context used to resolve relative resource paths.- Returns:
- the parsed result, never null.
- Throws:
ResourceCreationException- if the resource could not be parsed due to syntaxctial or logical errors in the data.ResourceLoadingException- if the resource could not be accessed from the physical storage.
-
getFactoryType
public java.lang.Class 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
-
-