-
Notifications
You must be signed in to change notification settings - Fork 0
Context Object
fxdevGer edited this page Aug 10, 2012
·
1 revision
<object id="simpleReferenceById" class="cs.unit.test.examples.ExampleSimpleReferenceById"/>
id:identifier for this object(Context.getObject(id))
class: Class Name for creation
ref: Object Reference Injection (exampleObject.simpleReference is called)
initMethod: Called after parsing, injecting and loading is complete
lifetime: set to expire this object will be killed if new context is created
call Context.getObject(id) if you need a created Instance (ScreenView or Navigation)
<object id="exampleObject" class="cs.unit.test.examples.ExampleObject" ref="simpleReferenceById" initMethod="initExampleObject" lifetime="expire"/>