Author: alessio.soldano(a)jboss.com
Date: 2010-12-02 05:28:46 -0500 (Thu, 02 Dec 2010)
New Revision: 13373
Added:
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/DescriptorParser.java
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSDescriptorParser.java
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesDescriptorParser.java
Modified:
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/DescriptorProcessor.java
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSDescriptorProcessor.java
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesDescriptorProcessor.java
Log:
[JBWS-3169] Deprecating DescriptorProcessor interfaces (as they directly reference XB) in
jbossws-spi 1.4.1; adding new DescriptorParser interfaces
Added:
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/DescriptorParser.java
===================================================================
---
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/DescriptorParser.java
(rev 0)
+++
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/DescriptorParser.java 2010-12-02
10:28:46 UTC (rev 13373)
@@ -0,0 +1,48 @@
+/*
+ * 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;
+
+import java.net.URL;
+
+/**
+ *
+ *
+ * @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
+ * @author alessio.soldano(a)jboss.com
+ */
+public interface DescriptorParser<T>
+{
+ /**
+ * Descriptor name to parse and process.
+ * @return descriptor name to consume.
+ */
+ String getDescriptorName();
+
+ /**
+ * Parses the descriptor at the provided URL and returns
+ * the corresponding object (metadata)
+ *
+ * @param url
+ * @return
+ */
+ T parse(final URL url);
+}
Modified:
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/DescriptorProcessor.java
===================================================================
---
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/DescriptorProcessor.java 2010-12-01
16:54:17 UTC (rev 13372)
+++
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/DescriptorProcessor.java 2010-12-02
10:28:46 UTC (rev 13373)
@@ -27,9 +27,11 @@
/**
* Descriptor processor is abstraction over configuration procesing.
+ * @deprecated This will be replaced by {@link
org.jboss.wsf.spi.metadata.DescriptorParser} interface.
*
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
*/
+@Deprecated
public interface DescriptorProcessor<T>
{
/**
Added:
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSDescriptorParser.java
===================================================================
---
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSDescriptorParser.java
(rev 0)
+++
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSDescriptorParser.java 2010-12-02
10:28:46 UTC (rev 13373)
@@ -0,0 +1,34 @@
+/*
+ * 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 org.jboss.wsf.spi.metadata.DescriptorParser;
+
+/**
+ * Parser for JMS UMDM.
+ *
+ * @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio
Soldano</a>
+ */
+public interface JMSDescriptorParser extends
DescriptorParser<JMSEndpointsMetaData>
+{
+}
Modified:
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSDescriptorProcessor.java
===================================================================
---
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSDescriptorProcessor.java 2010-12-01
16:54:17 UTC (rev 13372)
+++
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/jms/JMSDescriptorProcessor.java 2010-12-02
10:28:46 UTC (rev 13373)
@@ -25,9 +25,11 @@
/**
* Processor for JMS UMDM.
+ * @deprecated To be replaced by {@link
org.jboss.wsf.spi.metadata.jms.JMSDescriptorParser}
*
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
*/
+@Deprecated
public interface JMSDescriptorProcessor extends
DescriptorProcessor<JMSEndpointsMetaData>
{
}
Added:
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesDescriptorParser.java
===================================================================
---
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesDescriptorParser.java
(rev 0)
+++
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesDescriptorParser.java 2010-12-02
10:28:46 UTC (rev 13373)
@@ -0,0 +1,34 @@
+/*
+ * 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.webservices;
+
+import org.jboss.wsf.spi.metadata.DescriptorParser;
+
+/**
+ * Parser for WS UMDM.
+ *
+ * @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio
Soldano</a>
+ */
+public interface WebservicesDescriptorParser extends
DescriptorParser<WebservicesMetaData>
+{
+}
Modified:
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesDescriptorProcessor.java
===================================================================
---
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesDescriptorProcessor.java 2010-12-01
16:54:17 UTC (rev 13372)
+++
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesDescriptorProcessor.java 2010-12-02
10:28:46 UTC (rev 13373)
@@ -27,7 +27,9 @@
* Processor for WS UMDM.
*
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
+ * @deprecated To be replaced by {@link
org.jboss.wsf.spi.metadata.webservices.DescriptorParser}
*/
+@Deprecated
public interface WebservicesDescriptorProcessor extends
DescriptorProcessor<WebservicesMetaData>
{
}