blob: 5a0aeca135454852252916e5694f8f9458a32e5f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007 Oracle. 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:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.core.internal.resource.orm;
import org.eclipse.emf.common.util.URI;
import org.eclipse.wst.common.internal.emf.resource.Renderer;
import org.eclipse.wst.common.internal.emf.resource.RendererFactory;
import org.eclipse.wst.common.internal.emf.resource.TranslatorResource;
import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceFactory;
public class OrmResourceFactory extends TranslatorResourceFactory
{
public OrmResourceFactory() {
this(RendererFactory.getDefaultRendererFactory());
}
public OrmResourceFactory(RendererFactory aRendererFactory) {
super(aRendererFactory);
}
public OrmResourceFactory(RendererFactory aRendererFactory, boolean listeningForUpdates) {
super(aRendererFactory, listeningForUpdates);
}
/**
* @see TranslatorResourceFactory#createResource(URI, Renderer)
*/
protected TranslatorResource createResource(URI uri, Renderer renderer) {
return new OrmResource(uri, renderer);
}
}