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()
ResourceFactory
getFactoryType
in interface ResourceFactory
public void initializeDefaults()
ResourceFactory
initializeDefaults
in interface ResourceFactory
public boolean registerModule(java.lang.String className)
public void registerModule(FactoryModule module)
public Resource create(ResourceManager manager, ResourceData data, ResourceKey context) throws ResourceCreationException, ResourceLoadingException
ResourceFactory
create
in interface ResourceFactory
data
- context
- manager
- the resource manager used for all resource loading.ResourceCreationException
ResourceLoadingException