Author: alessio.soldano(a)jboss.com
Date: 2010-11-30 12:27:30 -0500 (Tue, 30 Nov 2010)
New Revision: 13369
Removed:
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSEndpointsFactory.java
Log:
[JBWS-3169] Removing unused XB factory (an equivalent one from jbossws-cxf-server is
already being used... this is kind of duplicated)
Deleted: spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSEndpointsFactory.java
===================================================================
---
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSEndpointsFactory.java 2010-11-30
15:22:11 UTC (rev 13368)
+++
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSEndpointsFactory.java 2010-11-30
17:27:30 UTC (rev 13369)
@@ -1,92 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2010, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.wsf.spi.metadata.jms;
-
-import java.net.URL;
-
-import org.jboss.xb.binding.ObjectModelFactory;
-import org.jboss.xb.binding.UnmarshallingContext;
-import org.xml.sax.Attributes;
-
-/**
- * JMS Endpoints OjbectModelFactory
- *
- * @author <a href="ema(a)redhat.com">Jim Ma</a>
- */
-public class JMSEndpointsFactory implements ObjectModelFactory
-{
- public static final String DESCRIPTOR_FILE = "jbossws-cxf.xml";
-
- private URL descriptorURL;
-
- public JMSEndpointsFactory(URL descriptorURL)
- {
- this.descriptorURL = descriptorURL;
- }
-
- /**
- * This method is called on the factory by the object model builder when the parsing
starts.
- *
- * @return the root of the object model.
- */
- public Object newRoot(Object root, UnmarshallingContext navigator, String
namespaceURI, String localName,
- Attributes attrs)
- {
- JMSEndpointsMetaData endpointsMetaData = new JMSEndpointsMetaData(descriptorURL);
- return endpointsMetaData;
- }
-
- public Object completeRoot(Object root, UnmarshallingContext ctx, String uri, String
name)
- {
- return root;
- }
-
- /**
- * Called when parsing of a new element started.
- */
- public Object newChild(JMSEndpointsMetaData endpoints, UnmarshallingContext navigator,
String namespaceURI,
- String localName, Attributes attrs)
- {
- if ("endpoint".equals(localName) &&
attrs.getValue("transportId").equals("http://cxf.apache.or...)
- {
- JMSEndpointMetaData endpoint = new JMSEndpointMetaData(endpoints);
- endpoint.setName(attrs.getValue("name"));
- endpoint.setImplementor(attrs.getValue("implementor"));
- endpoint.setEndpointName(attrs.getValue("endpointName"));
- endpoint.setWsdlLocation(attrs.getValue("wsdlLocation"));
- return endpoint;
-
- }
- else
- return null;
- }
-
- /**
- * Called when parsing character is complete.
- */
- public void addChild(JMSEndpointsMetaData endpoints, JMSEndpointMetaData
endpointMetaData, UnmarshallingContext navigator, String namespaceURI,
- String localName)
- {
- endpoints.addEndpointMetaData(endpointMetaData);
- }
-
-}