blob: fbbcd4f44c6878cd6ebaf32c6db31c39b18d6b18 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 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.eclipselink.core.internal.v1_1.context.orm;
import org.eclipse.jpt.core.JpaResourceType;
import org.eclipse.jpt.core.context.orm.OrmXmlContextNodeFactory;
import org.eclipse.jpt.core.context.orm.OrmXmlDefinition;
import org.eclipse.jpt.eclipselink.core.internal.JptEclipseLinkCorePlugin;
import org.eclipse.jpt.eclipselink.core.internal.context.orm.AbstractEclipseLinkOrmXmlDefinition;
public class EclipseLinkOrmXml1_1Definition
extends AbstractEclipseLinkOrmXmlDefinition
{
// singleton
private static final OrmXmlDefinition INSTANCE =
new EclipseLinkOrmXml1_1Definition();
/**
* Return the singleton.
*/
public static OrmXmlDefinition instance() {
return INSTANCE;
}
/**
* Enforce singleton usage
*/
private EclipseLinkOrmXml1_1Definition() {
super();
}
@Override
protected OrmXmlContextNodeFactory buildContextNodeFactory() {
return new EclipseLinkOrmXml1_1ContextNodeFactory();
}
public JpaResourceType getResourceType() {
return JptEclipseLinkCorePlugin.ECLIPSELINK_ORM_XML_1_1_RESOURCE_TYPE;
}
}