@Test public void testPerformInit() throws Exception { Java14ConfigModuleInitializer initializer = new Java14ConfigModuleInitializer(); initializer.performInit(); assertThat( ConfigFactory.getInstance().getUserStorage(), is( instanceOf( Java14ConfigStorage.class ) ) ); assertThat( ConfigFactory.getInstance().getSystemStorage(), is( instanceOf( Java14ConfigStorage.class ) ) ); }
public void performInit() throws ModuleInitializeException { final ConfigFactory factory = ConfigFactory.getInstance(); factory.defineUserStorage( new Java14ConfigStorage( Preferences.userNodeForPackage( MasterReport.class ) ) ); factory.defineSystemStorage( new Java14ConfigStorage( Preferences.systemNodeForPackage( MasterReport.class ) ) ); }
Java14ConfigModuleInitializer implements ModuleInitializer { public void performInit() throws ModuleInitializeException { final ConfigFactory factory = ConfigFactory.getInstance(); factory.defineUserStorage( new Java14ConfigStorage( Preferences.userNodeForPackage( MasterReport.class ) ) ); factory.defineSystemStorage( new Java14ConfigStorage( Preferences.systemNodeForPackage( MasterReport.class ) ) ); } }
Java14ConfigModuleInitializer implements ModuleInitializer { public void performInit() throws ModuleInitializeException { final ConfigFactory factory = ConfigFactory.getInstance(); factory.defineUserStorage( new Java14ConfigStorage( Preferences.userNodeForPackage( MasterReport.class ) ) ); factory.defineSystemStorage( new Java14ConfigStorage( Preferences.systemNodeForPackage( MasterReport.class ) ) ); } Java14ConfigModuleInitializer(); }
Java14ConfigModuleInitializer implements ModuleInitializer { public void performInit() throws ModuleInitializeException { final ConfigFactory factory = ConfigFactory.getInstance(); factory.defineUserStorage( new Java14ConfigStorage( Preferences.userNodeForPackage( MasterReport.class ) ) ); factory.defineSystemStorage( new Java14ConfigStorage( Preferences.systemNodeForPackage( MasterReport.class ) ) ); } Java14ConfigModuleInitializer(); void performInit(); }
Java14ConfigModuleInitializer implements ModuleInitializer { public void performInit() throws ModuleInitializeException { final ConfigFactory factory = ConfigFactory.getInstance(); factory.defineUserStorage( new Java14ConfigStorage( Preferences.userNodeForPackage( MasterReport.class ) ) ); factory.defineSystemStorage( new Java14ConfigStorage( Preferences.systemNodeForPackage( MasterReport.class ) ) ); } Java14ConfigModuleInitializer(); void performInit();  }