Author: alessio.soldano(a)jboss.com
Date: 2010-02-18 12:35:11 -0500 (Thu, 18 Feb 2010)
New Revision: 11615
Modified:
spi/trunk/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java
Log:
[JBWS-2895] Merging from jaxrpc-cxf branch, adding support for JAXRPC with CXF and Metro
stack
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java
===================================================================
--- spi/trunk/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java 2010-02-18
15:53:51 UTC (rev 11614)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java 2010-02-18
17:35:11 UTC (rev 11615)
@@ -21,12 +21,8 @@
*/
package org.jboss.wsf.spi.deployment;
-import java.util.HashSet;
import java.util.Set;
-import java.util.StringTokenizer;
-import org.jboss.logging.Logger;
-
/**
* A deployment aspect that does nothing.
*
@@ -36,87 +32,43 @@
* @author Thomas.Diesler(a)jboss.com
* @since 20-Apr-2007
*/
-public abstract class DeploymentAspect
+public interface DeploymentAspect
{
- // provide logging
- protected final Logger log = Logger.getLogger(getClass());
-
public static final String LAST_DEPLOYMENT_ASPECT =
"LAST_DEPLOYMENT_ASPECT";
- private String provides;
- private String requires;
- private int relativeOrder;
- private boolean isLast;
+ public void setLast(boolean isLast);
- public void setLast(boolean isLast)
- {
- this.isLast = isLast;
- }
+ public boolean isLast();
- public boolean isLast()
- {
- return this.isLast;
- }
-
- public String getProvides()
- {
- return provides;
- }
+ public String getProvides();
- public void setProvides(String provides)
- {
- this.provides = provides;
- }
+ public void setProvides(String provides);
- public String getRequires()
- {
- return requires;
- }
+ public String getRequires();
- public void setRequires(String requires)
- {
- this.requires = requires;
- }
+ public void setRequires(String requires);
- public void setRelativeOrder(int relativeOrder)
- {
- this.relativeOrder = relativeOrder;
- }
+ public void setRelativeOrder(int relativeOrder);
- public int getRelativeOrder()
- {
- return this.relativeOrder;
- }
+ public int getRelativeOrder();
- public void start(Deployment dep)
- {
- }
+ public void start(Deployment dep);
- public void stop(Deployment dep)
- {
- }
+ public void stop(Deployment dep);
- public Set<String> getProvidesAsSet()
- {
- Set<String> condset = new HashSet<String>();
- if (provides != null)
- {
- StringTokenizer st = new StringTokenizer(provides, ", \r\n\t");
- while (st.hasMoreTokens())
- condset.add(st.nextToken());
- }
- return condset;
- }
+ public Set<String> getProvidesAsSet();
- public Set<String> getRequiresAsSet()
- {
- Set<String> condset = new HashSet<String>();
- if (requires != null)
- {
- StringTokenizer st = new StringTokenizer(requires, ", \r\n\t");
- while (st.hasMoreTokens())
- condset.add(st.nextToken());
- }
- return condset;
- }
+ public Set<String> getRequiresAsSet();
+
+ public boolean canHandle(Deployment dep);
+
+ public boolean isForJaxWs();
+
+ public void setForJaxWs(boolean isForJaxWs);
+
+ public boolean isForJaxRpc();
+
+ public void setForJaxRpc(boolean isForJaxRpc);
+
+ public ClassLoader getLoader();
}
Show replies by date