servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r452085 - in /incubator/servicemix/trunk/tooling/servicemix-service-engine/src/main/resources/archetype-resources/src/main/java: MyComponent.java MyDeployer.java MyLifeCycle.java MySpringComponent.java
Date Mon, 02 Oct 2006 15:43:44 GMT
Author: jstrachan
Date: Mon Oct  2 08:43:43 2006
New Revision: 452085

URL: http://svn.apache.org/viewvc?view=rev&rev=452085
Log:
Upgraded the servicemix service engine to use the new DefaultComponent which can take care
of deploying and lifecycle stuff

Removed:
    incubator/servicemix/trunk/tooling/servicemix-service-engine/src/main/resources/archetype-resources/src/main/java/MyDeployer.java
    incubator/servicemix/trunk/tooling/servicemix-service-engine/src/main/resources/archetype-resources/src/main/java/MyLifeCycle.java
    incubator/servicemix/trunk/tooling/servicemix-service-engine/src/main/resources/archetype-resources/src/main/java/MySpringComponent.java
Modified:
    incubator/servicemix/trunk/tooling/servicemix-service-engine/src/main/resources/archetype-resources/src/main/java/MyComponent.java

Modified: incubator/servicemix/trunk/tooling/servicemix-service-engine/src/main/resources/archetype-resources/src/main/java/MyComponent.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/tooling/servicemix-service-engine/src/main/resources/archetype-resources/src/main/java/MyComponent.java?view=diff&rev=452085&r1=452084&r2=452085
==============================================================================
--- incubator/servicemix/trunk/tooling/servicemix-service-engine/src/main/resources/archetype-resources/src/main/java/MyComponent.java
(original)
+++ incubator/servicemix/trunk/tooling/servicemix-service-engine/src/main/resources/archetype-resources/src/main/java/MyComponent.java
Mon Oct  2 08:43:43 2006
@@ -16,29 +16,15 @@
  */
 package ${packageName};
 
-import org.apache.servicemix.common.BaseComponent;
-import org.apache.servicemix.common.BaseLifeCycle;
-import org.apache.servicemix.common.BaseServiceUnitManager;
-import org.apache.servicemix.common.Deployer;
+import org.apache.servicemix.common.DefaultComponent;
 
 /**
  *
  */
-public class MyComponent extends BaseComponent
-{
-    /* (non-Javadoc)
-     * @see org.servicemix.common.BaseComponent#createLifeCycle()
-     */
-    protected BaseLifeCycle createLifeCycle() {
-        return new MyLifeCycle(this);
-    }
+public class MyComponent extends DefaultComponent {
 
-    /* (non-Javadoc)
-     * @see org.servicemix.common.BaseComponent#createServiceUnitManager()
-     */
-    public BaseServiceUnitManager createServiceUnitManager() {
-        Deployer[] deployers = new Deployer[] { new MyDeployer(this) };
-        return new BaseServiceUnitManager(this, deployers);
+    protected Class[] getEndpointClasses() {
+        return new Class[] { MyEndpoint.class };
     }
 
 }



Mime
View raw message