Packageorg.swizframework.reflection
Classpublic class TypeCache
InheritanceTypeCache Inheritance Object

Static class used to ensure each type is only inspected via describeType a single time.



Protected Properties
 PropertyDefined By
  typeDescriptors : Dictionary
[static] Dictionary of previously inspected types.
TypeCache
Public Methods
 MethodDefined By
  
flushDomain(domain:ApplicationDomain):void
[static] Flushes all TypeDescriptors associated to a Domain
TypeCache
  
getTypeDescriptor(target:Object, domain:ApplicationDomain):TypeDescriptor
[static] Will return TypeDescriptor instance either retrieved from cache or freshly constructed from describeType call.
TypeCache
Property Detail
typeDescriptorsproperty
protected static var typeDescriptors:Dictionary

Dictionary of previously inspected types.

Method Detail
flushDomain()method
public static function flushDomain(domain:ApplicationDomain):void

Flushes all TypeDescriptors associated to a Domain

Parameters

domain:ApplicationDomain

getTypeDescriptor()method 
public static function getTypeDescriptor(target:Object, domain:ApplicationDomain):TypeDescriptor

Will return TypeDescriptor instance either retrieved from cache or freshly constructed from describeType call.

Parameters

target:Object — Object whose type is to be inspected and returned.
 
domain:ApplicationDomain — to associate the typeDescriptors with

Returns
TypeDescriptor — TypeDescriptor instance representing the type of the object that was passed in.