org.jdesktop.wonderland.client.assetmgr
Class AssetFactory

java.lang.Object
  extended by org.jdesktop.wonderland.client.assetmgr.AssetFactory

public class AssetFactory
extends java.lang.Object

Generates Asset classes based upon the type.

Author:
Jordan Slott

Constructor Summary
AssetFactory()
           
 
Method Summary
 Asset assetFactory(AssetDB.AssetDBRecord assetRecord)
          Factory for creating assets of the required type, given the asset database record.
 Asset assetFactory(AssetType assetType, AssetID assetID)
          Factory for creating assets of the required type, takes the type of asset desired (given by the AssetType enumeration) and the unique URI that describes the asset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetFactory

public AssetFactory()
Method Detail

assetFactory

public Asset assetFactory(AssetType assetType,
                          AssetID assetID)
Factory for creating assets of the required type, takes the type of asset desired (given by the AssetType enumeration) and the unique URI that describes the asset

Parameters:
assetType - The type of the asset
assetID - The unique ID describing the asset
Returns:
The new Asset, or null upon error

assetFactory

public Asset assetFactory(AssetDB.AssetDBRecord assetRecord)
Factory for creating assets of the required type, given the asset database record.

Parameters:
assetRecord - The database record of the asset
Returns:
The new Asset, or null upon error


Open Wonderland - http://openwonderland.org