Skip to Content.
Sympa Menu

notify-dpml - r1521 - in trunk: . main/metro main/metro/component/src/main/net/dpml/component

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1521 - in trunk: . main/metro main/metro/component/src/main/net/dpml/component
  • Date: Tue, 20 Jun 2006 08:26:55 +0200

Author: mcconnell
Date: 2006-06-20 08:26:50 +0200 (Tue, 20 Jun 2006)
New Revision: 1521

Added:
trunk/lab/
trunk/main/metro/component/src/main/net/dpml/component/Commissionable.java
Modified:
trunk/main/metro/component/src/main/net/dpml/component/Component.java
trunk/main/metro/component/src/main/net/dpml/component/Provider.java
trunk/main/metro/module.xml
Log:
move Commissionable to metro/component

Added:
trunk/main/metro/component/src/main/net/dpml/component/Commissionable.java
===================================================================
---
trunk/main/metro/component/src/main/net/dpml/component/Commissionable.java
2006-06-20 06:21:08 UTC (rev 1520)
+++
trunk/main/metro/component/src/main/net/dpml/component/Commissionable.java
2006-06-20 06:26:50 UTC (rev 1521)
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2006 Stephen J. McConnell.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.component;
+
+import java.rmi.RemoteException;
+
+/**
+ * Interface implemented by objects that implement
commission/decommmissioning
+ * lifecycles.
+ *
+ * @author <a href="@PUBLISHER-URL@">@PUBLISHER-NAME@</a>
+ * @version @PROJECT-VERSION@
+ */
+public interface Commissionable
+{
+ /**
+ * Commission the instance.
+ * @exception Exception if an error occurs
+ */
+ void commission() throws Exception;
+
+ /**
+ * Decommission the instance.
+ * @exception RemoteException if remote invocation transport error occurs
+ */
+ void decommission() throws RemoteException;
+}

Modified:
trunk/main/metro/component/src/main/net/dpml/component/Component.java
===================================================================
--- trunk/main/metro/component/src/main/net/dpml/component/Component.java
2006-06-20 06:21:08 UTC (rev 1520)
+++ trunk/main/metro/component/src/main/net/dpml/component/Component.java
2006-06-20 06:26:50 UTC (rev 1521)
@@ -22,8 +22,6 @@
import java.rmi.Remote;
import java.rmi.RemoteException;

-import net.dpml.job.Commissionable;
-
/**
* The Component represents a remote interface to a runtime component type.
*

Modified: trunk/main/metro/component/src/main/net/dpml/component/Provider.java
===================================================================
--- trunk/main/metro/component/src/main/net/dpml/component/Provider.java
2006-06-20 06:21:08 UTC (rev 1520)
+++ trunk/main/metro/component/src/main/net/dpml/component/Provider.java
2006-06-20 06:26:50 UTC (rev 1521)
@@ -27,8 +27,6 @@
import net.dpml.state.UnknownOperationException;
import net.dpml.state.UnknownTransitionException;

-import net.dpml.job.Commissionable;
-
/**
* Provider holder.
*

Modified: trunk/main/metro/module.xml
===================================================================
--- trunk/main/metro/module.xml 2006-06-20 06:21:08 UTC (rev 1520)
+++ trunk/main/metro/module.xml 2006-06-20 06:26:50 UTC (rev 1521)
@@ -21,6 +21,7 @@
</filters>
</project>

+ <!--
<project name="dpml-job-api" basedir="job/api">
<types>
<type id="jar"/>
@@ -31,6 +32,7 @@
</test>
</dependencies>
</project>
+ -->

<project name="dpml-metro-component" basedir="component">
<types>
@@ -39,7 +41,7 @@
<dependencies>
<runtime>
<include key="dpml-metro-state" tag="public"/>
- <include ref="dpml/metro/dpml-job-api" tag="public"/>
+ <!--<include ref="dpml/metro/dpml-job-api" tag="public"/>-->
<include ref="dpml/transit/dpml-transit-main" tag="private"/>
</runtime>
<test>




  • r1521 - in trunk: . main/metro main/metro/component/src/main/net/dpml/component, mcconnell at BerliOS, 06/20/2006

Archive powered by MHonArc 2.6.24.

Top of Page