Modify the ImportStrategyRegistry class
About this task
The final implementation step is to register your new import strategies. To register an import strategy:
Procedure
- In Studio, navigate to and edit the class gw.exportimport.entityimport.ImportStrategyRegistry.
-
In the
TYPE_STRATEGY_MAPvariable declaration, map the entity you are configuring to your new import strategy. For example:static final var TYPE_STRATEGY_MAP : Map<Type, EntityImportStrategy> = { CPBuilding -> new CPBuildingImportStrategy(), CPLocation -> new CPLocationImportStrategy() PersonalVehicle -> new PersonalVehicleImportStrategy() }
