private void initTangoFactory ( ) { // we get the properties with instance of objects final Properties properties = getPropertiesFile ( ) ; // if(properties == null || properties.size() == 0 || // !properties.containsKey(TANGO_FACTORY)) // { // //tangoFactory = new DefaultTangoFactoryImpl(); // //TANGO_FACTORY = fr.esrf.TangoApi.factory.WebTangoFactoryImpl // // tangoFactory = (ITangoFactory)getObject(""); // isDefaultFactory = false; // } // else // { String factoryClassName = properties . getProperty ( TANGO_FACTORY ) ; if ( factoryClassName == null ) { factoryClassName = "fr.esrf.TangoApi.factory.DefaultTangoFactoryImpl" ; } //System.out.println("TANGO_FACTORY " + factoryClassName); tangoFactory = ( ITangoFactory ) getObject ( factoryClassName ) ; isDefaultFactory = false ; // } }
Load properties with impl specification and create instances