Packagecom.pblabs.engine.resource.provider
Classpublic class ResourceProviderBase
InheritanceResourceProviderBase Inheritance Object
Implements IResourceProvider
Subclasses BulkLoaderResourceProvider, EmbeddedResourceProvider

The ResourceProviderBase class can be extended to create a ResourceProvider that will auto register with the ResourceManager



Protected Properties
 PropertyDefined By
  resources : Dictionary
ResourceProviderBase
Public Methods
 MethodDefined By
  
ResourceProviderBase(registerProvider:Boolean = true)
ResourceProviderBase
  
getResource(uri:String, type:Class, forceReload:Boolean = false):Resource
This method will request a resource from this ResourceProvider
ResourceProviderBase
  
isResourceKnown(uri:String, type:Class):Boolean
This method will check if this provider has access to a specific Resource
ResourceProviderBase
  
unloadResource(uri:String, type:Class):void
This method will unload a resource from the resources Dictionary
ResourceProviderBase
Protected Methods
 MethodDefined By
  
addResource(uri:String, type:Class, resource:Resource):void
This method will add a resource to the resources Dictionary
ResourceProviderBase
Property Detail
resourcesproperty
protected var resources:Dictionary

Constructor Detail
ResourceProviderBase()Constructor
public function ResourceProviderBase(registerProvider:Boolean = true)



Parameters
registerProvider:Boolean (default = true)
Method Detail
addResource()method
protected function addResource(uri:String, type:Class, resource:Resource):void

This method will add a resource to the resources Dictionary

Parameters

uri:String
 
type:Class
 
resource:Resource

getResource()method 
public function getResource(uri:String, type:Class, forceReload:Boolean = false):Resource

This method will request a resource from this ResourceProvider

Parameters

uri:String
 
type:Class
 
forceReload:Boolean (default = false)

Returns
Resource
isResourceKnown()method 
public function isResourceKnown(uri:String, type:Class):Boolean

This method will check if this provider has access to a specific Resource

Parameters

uri:String
 
type:Class

Returns
Boolean
unloadResource()method 
public function unloadResource(uri:String, type:Class):void

This method will unload a resource from the resources Dictionary

Parameters

uri:String
 
type:Class