Example #1
0
  /**
   * Creates a factory instance using the properties passed in.
   *
   * @param properties Properties to be used while creating the <code>FactoryInstance</code>.
   */
  private FactoryInstance createFactoryInstance(ConfigMap properties) {
    if (properties == null) properties = new ConfigMap();

    properties.put(FlexFactory.SOURCE, source);
    properties.put(FlexFactory.SCOPE, scope);
    FactoryInstance factoryInstance = getFactory().createFactoryInstance(getId(), properties);
    return factoryInstance;
  }