Code example for Set

Methods: sizetoArray

0
	 */ 
	@Deprecated 
	public static String[] getExternalRepositoryClassNames() {
		Set<String> classNames = externalRepositoryFactories.keySet();
 
		return classNames.toArray(new String[classNames.size()]);
	} 
 
	public static BaseRepository getInstance(String className)
		throws Exception {
 
		ExternalRepositoryFactory externalRepositoryFactory =
			externalRepositoryFactories.get(className);
 
		BaseRepository baseRepository = null;
 
		if (externalRepositoryFactory != null) {
			baseRepository = externalRepositoryFactory.getInstance();
		}