Types & Scopes
Each configuration binder has two public properties accessible in the this
scope:
this.TYPES
: A reference towirebox.system.ioc.Types
used to declare what type of object you are registering for construction or wiringthis.SCOPES
: A reference towirebox.system.ioc.Scopes
used to declare in what life cycle scope the object will be stored under
These two classes contain static public members in the this scope that facilitate the declaration of persistence scopes and construction types for object mappings. Below are the valid enumerations for these two classes:
this.TYPES
CFC
: Construction of a CFCJAVA
: Construction of a Java classWEBSERVICE
: Construction of a webservice objectRSS
: Construction of an RSS feedDSL
: Construction by DSL stringCONSTANT
: A constant valueFACTORY
: Construction by factory method
this.SCOPES
NOSCOPE
: Transient objectsPROTOTYPE
: Transient objectsSINGLETON
: Objects constructed only once and stored in the injectorSESSION
: ColdFusion session scoped based objectsAPPLICATION
: ColdFusion application scope based objectsREQUEST
: ColdFusion request scope based objectsSERVER
: ColdFusion server scope based objectsCACHEBOX
: CacheBox scoped objects