5454import com .cloud .storage .DiskOfferingVO ;
5555import com .cloud .storage .dao .DiskOfferingDaoImpl ;
5656import com .cloud .utils .PropertiesUtil ;
57- import com .cloud .utils .component .ComponentLocator ;
57+ import com .cloud .utils .component .LegacyComponentLocator ;
5858import com .cloud .utils .db .DB ;
5959import com .cloud .utils .db .Transaction ;
6060import com .cloud .utils .net .NfsUtils ;
@@ -76,10 +76,10 @@ public class DatabaseConfig {
7676 private static HashSet <String > fieldNames = new HashSet <String >();
7777
7878 // Maintain an IPRangeConfig object to handle IP related logic
79- private final IPRangeConfig iprc = ComponentLocator .inject (IPRangeConfig .class );
79+ private final IPRangeConfig iprc = LegacyComponentLocator .inject (IPRangeConfig .class );
8080
8181 // Maintain a PodZoneConfig object to handle Pod/Zone related logic
82- private final PodZoneConfig pzc = ComponentLocator .inject (PodZoneConfig .class );
82+ private final PodZoneConfig pzc = LegacyComponentLocator .inject (PodZoneConfig .class );
8383
8484 // Global variables to store network.throttling.rate and multicast.throttling.rate from the configuration table
8585 // Will be changed from null to a non-null value if the value existed in the configuration table
@@ -359,7 +359,7 @@ public static void main(String[] args) {
359359 s_logger .error ("error starting database config, missing initial data file" );
360360 } else {
361361 try {
362- DatabaseConfig config = ComponentLocator .inject (DatabaseConfig .class , args [0 ]);
362+ DatabaseConfig config = LegacyComponentLocator .inject (DatabaseConfig .class , args [0 ]);
363363 config .doVersionCheck ();
364364 config .doConfig ();
365365 System .exit (0 );
@@ -918,7 +918,7 @@ protected void saveServiceOffering() {
918918 }
919919
920920 ServiceOfferingVO serviceOffering = new ServiceOfferingVO (name , cpu , ramSize , speed , null , null , ha , displayText , useLocalStorage , false , null , false , null , false );
921- ServiceOfferingDaoImpl dao = ComponentLocator .inject (ServiceOfferingDaoImpl .class );
921+ ServiceOfferingDaoImpl dao = LegacyComponentLocator .inject (ServiceOfferingDaoImpl .class );
922922 try {
923923 dao .persist (serviceOffering );
924924 } catch (Exception e ) {
@@ -967,7 +967,7 @@ protected void saveDiskOffering() {
967967 }
968968 DiskOfferingVO diskOffering = new DiskOfferingVO (domainId , name , displayText , diskSpace , tags , false );
969969 diskOffering .setUseLocalStorage (local );
970- DiskOfferingDaoImpl offering = ComponentLocator .inject (DiskOfferingDaoImpl .class );
970+ DiskOfferingDaoImpl offering = LegacyComponentLocator .inject (DiskOfferingDaoImpl .class );
971971 try {
972972 offering .persist (diskOffering );
973973 } catch (Exception e ) {
0 commit comments