From jbossws-commits at lists.jboss.org Tue Nov 30 12:27:31 2010 Content-Type: multipart/mixed; boundary="===============7814227870118499641==" MIME-Version: 1.0 From: jbossws-commits at lists.jboss.org To: jbossws-commits at lists.jboss.org Subject: [jbossws-commits] JBossWS SVN: r13369 - spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/jms. Date: Tue, 30 Nov 2010 12:27:31 -0500 Message-ID: <201011301727.oAUHRVko026513@svn01.web.mwc.hst.phx2.redhat.com> --===============7814227870118499641== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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/JMSEndpointsFacto= ry.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/JMSEndpoint= sFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSEndpointsFact= ory.java 2010-11-30 15:22:11 UTC (rev 13368) +++ spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSEndpointsFact= ory.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 Jim Ma - */ -public class JMSEndpointsFactory implements ObjectModelFactory -{ - public static final String DESCRIPTOR_FILE =3D "jbossws-cxf.xml"; - - private URL descriptorURL; - - public JMSEndpointsFactory(URL descriptorURL) - { - this.descriptorURL =3D descriptorURL; - } - - /** - * This method is called on the factory by the object model builder whe= n the parsing starts. - * - * @return the root of the object model. - */ - public Object newRoot(Object root, UnmarshallingContext navigator, Stri= ng namespaceURI, String localName, - Attributes attrs) - { - JMSEndpointsMetaData endpointsMetaData =3D new JMSEndpointsMetaData(= descriptorURL); - return endpointsMetaData; - } - - public Object completeRoot(Object root, UnmarshallingContext ctx, Strin= g uri, String name) - { - return root; - } - - /** - * Called when parsing of a new element started. - */ - public Object newChild(JMSEndpointsMetaData endpoints, UnmarshallingCon= text navigator, String namespaceURI, - String localName, Attributes attrs) - { - if ("endpoint".equals(localName) && attrs.getValue("transportId").eq= uals("http://cxf.apache.org/transports/jms")) - { - JMSEndpointMetaData endpoint =3D new JMSEndpointMetaData(endpoint= s); - 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, JMSEndpointMetaDat= a endpointMetaData, UnmarshallingContext navigator, String namespaceURI, - String localName) - { - endpoints.addEndpointMetaData(endpointMetaData); - } - = -} --===============7814227870118499641==--