| /******************************************************************************* |
| * Copyright (c) 2003, 2004 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.wst.common.componentcore.internal.impl; |
| |
| import org.eclipse.emf.common.util.URI; |
| import org.eclipse.emf.ecore.resource.Resource; |
| import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry; |
| |
| /** |
| * <p> |
| * The following class is experimental until fully documented. |
| * </p> |
| */ |
| public class WTPResourceFactoryRegistry extends FileNameResourceFactoryRegistry { |
| |
| public static final WTPResourceFactoryRegistry INSTANCE = new WTPResourceFactoryRegistry(); |
| |
| public Resource.Factory delegatedGetFactory(URI uri) { |
| if (WTPResourceFactoryRegistry.INSTANCE == this) |
| return super.delegatedGetFactory(uri); |
| return WTPResourceFactoryRegistry.INSTANCE.getFactory(uri); |
| } |
| } |