blob: bd05becebefa3e1ab222ae20729a65e451b2e066 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 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.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;
public class EclipseLinkOrmXmlDefinition
extends AbstractEclipseLinkOrmXmlDefinition
{
// singleton
private static final OrmXmlDefinition INSTANCE =
new EclipseLinkOrmXmlDefinition();
/**
* Return the singleton.
*/
public static OrmXmlDefinition instance() {
return INSTANCE;
}
/**
* Ensure single instance.
*/
private EclipseLinkOrmXmlDefinition() {
super();
}
@Override
protected OrmXmlContextNodeFactory buildContextNodeFactory() {
return new EclipseLinkOrmXmlContextNodeFactory();
}
public JpaResourceType getResourceType() {
return JptEclipseLinkCorePlugin.ECLIPSELINK_ORM_XML_1_0_RESOURCE_TYPE;
}
}