Skip to content
fxdevGer edited this page Aug 10, 2012 · 1 revision

Simple Class without any Function need for injection via ref attribute

<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"/>