Author: richard.opalka(a)jboss.com
Date: 2010-07-09 04:10:04 -0400 (Fri, 09 Jul 2010)
New Revision: 12610
Added:
common/trunk/src/main/java/org/jboss/wsf/common/integration/JMSDeploymentAspect.java
Modified:
common/trunk/src/main/java/org/jboss/wsf/common/integration/WSHelper.java
Log:
[JBWS-3086] merging CXF protype upstream
Copied:
common/trunk/src/main/java/org/jboss/wsf/common/integration/JMSDeploymentAspect.java (from
rev 12279,
common/branches/jms-integration/src/main/java/org/jboss/wsf/common/integration/JMSDeploymentAspect.java)
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/common/integration/JMSDeploymentAspect.java
(rev 0)
+++
common/trunk/src/main/java/org/jboss/wsf/common/integration/JMSDeploymentAspect.java 2010-07-09
08:10:04 UTC (rev 12610)
@@ -0,0 +1,39 @@
+/*
+ * 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.common.integration;
+
+import org.jboss.wsf.spi.deployment.Deployment;
+import org.jboss.wsf.spi.metadata.jms.JMSEndpointsMetaData;
+
+/**
+ * JMS deployment aspect.
+ *
+ * @author <a href="mailto:ema@redhat.com">Jim Ma</a>
+ */
+public final class JMSDeploymentAspect extends AbstractDeploymentAspect
+{
+ @Override
+ public boolean canHandle(final Deployment dep)
+ {
+ return this.isForJaxWs() && dep.getAttachment(JMSEndpointsMetaData.class)
!= null;
+ }
+}
Modified: common/trunk/src/main/java/org/jboss/wsf/common/integration/WSHelper.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/common/integration/WSHelper.java 2010-07-09
07:52:03 UTC (rev 12609)
+++ common/trunk/src/main/java/org/jboss/wsf/common/integration/WSHelper.java 2010-07-09
08:10:04 UTC (rev 12610)
@@ -133,6 +133,17 @@
{
return DeploymentType.JAXWS_JSE.equals( dep.getType() );
}
+
+ /**
+ * Returns true if deployment represents JAXWS JMS deployment.
+ *
+ * @param dep webservice deployment
+ * @return true if JAXWS JMS deployment, false otherwise
+ */
+ public static boolean isJaxwsJmsDeployment( final Deployment dep )
+ {
+ return DeploymentType.JAXWS_JMS.equals( dep.getType() );
+ }
/**
* Returns true if deployment represents either JAXWS JSE or JAXRPC JSE deployment.
@@ -189,5 +200,4 @@
return isJaxrpcEjb || isJaxrpcJse;
}
-
}