public abstract class AbstractResourceFactory extends java.lang.Object implements ResourceFactory
CONFIG_PREFIX| Modifier and Type | Method and Description |
|---|---|
Resource |
create(ResourceManager manager,
ResourceData data,
ResourceKey context)
Creates a resource by interpreting the data given in the resource-data object.
|
java.lang.Class |
getFactoryType()
Returns the expected result type.
|
void |
initializeDefaults()
Initializes the resource factory.
|
void |
registerModule(FactoryModule module) |
boolean |
registerModule(java.lang.String className) |
public java.lang.Class getFactoryType()
ResourceFactorygetFactoryType in interface ResourceFactorypublic void initializeDefaults()
ResourceFactoryinitializeDefaults in interface ResourceFactorypublic boolean registerModule(java.lang.String className)
public void registerModule(FactoryModule module)
public Resource create(ResourceManager manager, ResourceData data, ResourceKey context) throws ResourceCreationException, ResourceLoadingException
ResourceFactorycreate in interface ResourceFactorydata - context - manager - the resource manager used for all resource loading.ResourceCreationExceptionResourceLoadingException