/** * Initializes the <code>FactoryDestination</code> with the properties. * * @param id the factory id * @param properties Properties for the <code>FactoryDestination</code>. */ public void initialize(String id, ConfigMap properties) { super.initialize(id, properties); if (properties == null || properties.size() == 0) return; // Need to cache this for later. TODO: We shouldn't need to do this. factoryProperties = properties; factoryId = properties.getPropertyAsString(FACTORY, factoryId); scope = properties.getPropertyAsString(FlexFactory.SCOPE, scope); source = properties.getPropertyAsString(FlexFactory.SOURCE, source); if (source == null) source = getId(); if (factory != null) factory.initialize(getId(), factoryProperties); }