private static synchronized void load()
{
if ( _factories == null ) {
String prop;
StringTokenizer tokenizer;
PersistenceFactory factory;
Class cls;
_factories = new Hashtable();
prop = LocalConfiguration.getInstance().getProperty( FactoriesProperty, "" );
tokenizer = new StringTokenizer( prop, ", " );
while ( tokenizer.hasMoreTokens() ) {
prop = tokenizer.nextToken();
try {
cls = PersistenceFactoryRegistry.class.getClassLoader().loadClass( prop );
factory = (PersistenceFactory) cls.newInstance();
_factories.put( factory.getFactoryName(), factory );
} catch ( Exception except ) {
Logger.getSystemLogger().println( Messages.format( "persist.missingPersistenceFactory", prop ) );
}
}
}