Packageorg.vostokframework.domain.assets
Classpublic class AssetFactory
InheritanceAssetFactory Inheritance Object

description



Public Methods
 MethodDefined By
  
AssetFactory
  
create(src:String, assetPackage:AssetPackage, id:String = null, type:AssetType = null):Asset
description
AssetFactory
  
description
AssetFactory
Constructor Detail
AssetFactory()Constructor
public function AssetFactory()



Method Detail
create()method
public function create(src:String, assetPackage:AssetPackage, id:String = null, type:AssetType = null):Asset

description

Parameters

src:String
 
assetPackage:AssetPackage
 
id:String (default = null)
 
type:AssetType (default = null)

Returns
Asset

Throws
ArgumentError — if the <codeph>src</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
 
ArgumentError — if the <codeph>assetPackage</codeph> argument is <codeph>null</codeph>.
 
org.vostokframework.domain.assets.errors:UnsupportedAssetType — if the <codeph>type</codeph> argument is <codeph>null</codeph> and the framework cannot get the Asset Type over its <codeph>src</codeph> argument or the file extension in the <codeph>src</codeph> argument is not supported.
setUrlAssetParser()method 
public function setUrlAssetParser(parser:UrlAssetParser):void

description

Parameters

parser:UrlAssetParser


Throws
ArgumentError — if the <codeph>settings</codeph> argument is <codeph>null</codeph>.