Author: richard.opalka(a)jboss.com
Date: 2009-07-03 05:17:03 -0400 (Fri, 03 Jul 2009)
New Revision: 10303
Modified:
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/Deployment.java
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/Endpoint.java
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/LifecycleHandler.java
Log:
[JBWS-2332][JBWS-2382] refactoring - adding new LAST, RELATIVE_ORDER properties, removing
CREATED, DESTROYED states - these are useless (WIP)
Modified: spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/Deployment.java
===================================================================
---
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/Deployment.java 2009-07-02
19:20:55 UTC (rev 10302)
+++
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/Deployment.java 2009-07-03
09:17:03 UTC (rev 10303)
@@ -37,7 +37,7 @@
public enum DeploymentState
{
- UNDEFINED, CREATED, STARTED, STOPPED, DESTROYED
+ UNDEFINED, STARTED, STOPPED
};
/** Get the identifier for this deployment */
Modified:
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java
===================================================================
---
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java 2009-07-02
19:20:55 UTC (rev 10302)
+++
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java 2009-07-03
09:17:03 UTC (rev 10303)
@@ -45,7 +45,19 @@
private String provides;
private String requires;
+ private int relativeOrder;
+ private boolean isLast;
+ public void setLast(boolean isLast)
+ {
+ this.isLast = isLast;
+ }
+
+ public boolean isLast()
+ {
+ return this.isLast;
+ }
+
public String getProvides()
{
return provides;
@@ -65,13 +77,15 @@
{
this.requires = requires;
}
-
- public void create(Deployment dep)
+
+ public void setRelativeOrder(int relativeOrder)
{
+ this.relativeOrder = relativeOrder;
}
-
- public void destroy(Deployment dep)
+
+ public int getRelativeOrder()
{
+ return this.relativeOrder;
}
public void start(Deployment dep)
Modified: spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/Endpoint.java
===================================================================
---
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/Endpoint.java 2009-07-02
19:20:55 UTC (rev 10302)
+++
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/Endpoint.java 2009-07-03
09:17:03 UTC (rev 10303)
@@ -47,7 +47,7 @@
public enum EndpointState
{
- UNDEFINED, CREATED, STARTED, STOPPED, DESTROYED
+ UNDEFINED, STARTED, STOPPED
};
/** Get the service this endpoint belongs to */
Modified:
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/LifecycleHandler.java
===================================================================
---
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/LifecycleHandler.java 2009-07-02
19:20:55 UTC (rev 10302)
+++
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/deployment/LifecycleHandler.java 2009-07-03
09:17:03 UTC (rev 10303)
@@ -29,15 +29,9 @@
*/
public interface LifecycleHandler
{
- /** Handle the create step of an endpoint */
- void create(Endpoint endpoint);
-
/** Handle the start step of an endpoint */
void start(Endpoint endpoint);
/** Handle the stop step of an endpoint */
void stop(Endpoint endpoint);
-
- /** Handle the destroy step of an endpoint */
- void destroy(Endpoint endpoint);
}
Show replies by date