create method

dynamic create (
  1. dynamic locator,
  2. IFactory factory
)

Creates a component identified by given locator.

  • locator a locator to identify component to be created.
  • factory a factory that shall create the component. Returns the created component.

Throws a CreateException if the factory is not able to create the component.

See findFactory