Packagecom.pblabs.engine.resource.provider
Classpublic class EmbeddedResourceProvider
InheritanceEmbeddedResourceProvider Inheritance ResourceProviderBase Inheritance Object

The EmbeddedResourceProvider provides the ResourceManager with the embedded resources that were loaded from ResourceBundle and ResourceBinding classes This class works using a singleton pattern so when resource bundles and/or resource bindings are initialized they will register the resources with the EmbeddedResourceProvider.instance



Public Properties
 PropertyDefined By
  instance : EmbeddedResourceProvider
[static] [read-only] The singleton instance of the resource manager.
EmbeddedResourceProvider
Protected Properties
 PropertyDefined By
 Inheritedresources : Dictionary
ResourceProviderBase
Public Methods
 MethodDefined By
  
Contructor Calls the ResourceProvideBase constructor - super(); to auto-register this provider with the ResourceManager
EmbeddedResourceProvider
 Inherited
getResource(uri:String, type:Class, forceReload:Boolean = false):Resource
This method will request a resource from this ResourceProvider
ResourceProviderBase
 Inherited
isResourceKnown(uri:String, type:Class):Boolean
This method will check if this provider has access to a specific Resource
ResourceProviderBase
  
registerResource(filename:String, resourceType:Class, data:*):void
This method is used by the ResourceBundle and ResourceBinding Class to register the existance of a specific embedded resource
EmbeddedResourceProvider
  
unloadResource(uri:String, type:Class):void
[override]
EmbeddedResourceProvider
Protected Methods
 MethodDefined By
 Inherited
addResource(uri:String, type:Class, resource:Resource):void
This method will add a resource to the resources Dictionary
ResourceProviderBase
Property Detail
instanceproperty
instance:EmbeddedResourceProvider  [read-only]

The singleton instance of the resource manager.


Implementation
    public static function get instance():EmbeddedResourceProvider
Constructor Detail
EmbeddedResourceProvider()Constructor
public function EmbeddedResourceProvider()

Contructor Calls the ResourceProvideBase constructor - super(); to auto-register this provider with the ResourceManager

Method Detail
registerResource()method
public function registerResource(filename:String, resourceType:Class, data:*):void

This method is used by the ResourceBundle and ResourceBinding Class to register the existance of a specific embedded resource

Parameters

filename:String
 
resourceType:Class
 
data:*

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

Parameters

uri:String
 
type:Class