/******************************************************************************* * Copyright (c) 2001, 2005 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 *******************************************************************************/ /* * Created on Mar 11, 2004 * * To change the template for this generated file go to * Window - Preferences - Java - Code Generation - Code and Comments */ package org.eclipse.jst.j2ee.common.internal.impl; import org.eclipse.jst.j2ee.application.internal.impl.ApplicationResourceFactory; import org.eclipse.jst.j2ee.client.internal.impl.ApplicationClientResourceFactory; import org.eclipse.jst.j2ee.ejb.internal.impl.EJBJarResourceFactory; import org.eclipse.jst.j2ee.internal.J2EEConstants; import org.eclipse.jst.j2ee.jca.internal.impl.ConnectorResourceFactory; import org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppResourceFactory; import org.eclipse.jst.j2ee.webservice.internal.WebServiceConstants; import org.eclipse.jst.j2ee.webservice.internal.wsdd.WsddResourceFactory; import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.WebServicesClientResourceFactory; import org.eclipse.wst.common.internal.emf.resource.EMF2SAXRendererFactory; /** * @author jsholl * * To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code * and Comments */ public class J2EEResouceFactorySaxRegistry extends J2EEResourceFactoryRegistry { public static J2EEResourceFactoryRegistry INSTANCE = new J2EEResouceFactorySaxRegistry(); public J2EEResouceFactorySaxRegistry() { super(); initRegistration(); } private void initRegistration() { EMF2SAXRendererFactory.INSTANCE.setValidating(false); registerLastFileSegment(J2EEConstants.EJBJAR_DD_SHORT_NAME, new EJBJarResourceFactory(EMF2SAXRendererFactory.INSTANCE)); registerLastFileSegment(J2EEConstants.WEBAPP_DD_SHORT_NAME, new WebAppResourceFactory(EMF2SAXRendererFactory.INSTANCE)); registerLastFileSegment(J2EEConstants.APP_CLIENT_DD_SHORT_NAME, new ApplicationClientResourceFactory(EMF2SAXRendererFactory.INSTANCE)); registerLastFileSegment(J2EEConstants.APPLICATION_DD_SHORT_NAME, new ApplicationResourceFactory(EMF2SAXRendererFactory.INSTANCE)); registerLastFileSegment(J2EEConstants.RAR_SHORT_NAME, new ConnectorResourceFactory(EMF2SAXRendererFactory.INSTANCE)); registerLastFileSegment(J2EEConstants.WEB_SERVICES_CLIENT_SHORTNAME, new WebServicesClientResourceFactory(EMF2SAXRendererFactory.INSTANCE)); registerLastFileSegment(WebServiceConstants.WEBSERVICE_DD_SHORT_NAME, new WsddResourceFactory(EMF2SAXRendererFactory.INSTANCE)); } }