Prototype
When the
scope
is defined to
prototype
, ElementFactory creates a new instance on every invocation of
getElement(Stirng id)
.
Following is a sample definition for the prototype scope:
<mypackage.SimpleElement id="aSimpleElement" Scope="prototype"/>
Parent topic:
Scope