/** * Register a class that implements a FeatureDatasetFactory. * * @param className name of class that implements FeatureDatasetFactory. * @throws ClassNotFoundException if loading error */ static public void registerFactory(String className) throws ClassNotFoundException { Class c = Class.forName(className); registerFactory(c); }
/** * Register a class that implements a FeatureDatasetFactory. * * @param className name of class that implements FeatureDatasetFactory. * @throws ClassNotFoundException if loading error */ static public void registerFactory(String className) throws ClassNotFoundException { Class c = Class.forName(className); registerFactory(c); }
/** * Register a class that implements a FeatureDatasetFactory. * * @param className name of class that implements FeatureDatasetFactory. * @throws ClassNotFoundException if loading error */ static public void registerFactory(String className) throws ClassNotFoundException { Class c = Class.forName(className); registerFactory(c); }
/** * Register a class that implements a FeatureDatasetFactory. * * @param datatype scientific data type * @param className name of class that implements FeatureDatasetFactory. * @return true if successfully loaded */ static public boolean registerFactory(FeatureType datatype, String className) { try { Class c = Class.forName(className); registerFactory(datatype, c); return true; } catch (ClassNotFoundException e) { // ok - these are optional return false; } }
/** * Register a class that implements a FeatureDatasetFactory. * * @param datatype scientific data type * @param className name of class that implements FeatureDatasetFactory. * @return true if successfully loaded */ static public boolean registerFactory(FeatureType datatype, String className) { try { Class c = Class.forName(className); registerFactory(datatype, c); return true; } catch (ClassNotFoundException e) { // ok - these are optional return false; } }
/** * Register a class that implements a FeatureDatasetFactory. * * @param datatype scientific data type * @param className name of class that implements FeatureDatasetFactory. * @return true if successfully loaded */ static public boolean registerFactory(FeatureType datatype, String className) { try { Class c = Class.forName(className); registerFactory(datatype, c); return true; } catch (ClassNotFoundException e) { // ok - these are optional return false; } }
boolean ok = ucar.nc2.ft.FeatureDatasetFactoryManager.registerFactory( featureType, className); if (!ok) errlog.append("FeatureDatasetFactory " + className + " failed\n");