summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/java/org/apache/tuscany/Service.java
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-02-17 04:14:31 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-02-17 04:14:31 +0000
commit00438314438f3dde00b532ac5d8d28ccc35c7096 (patch)
tree80dbbb010c5125455a164c77670b8694231f123f /sca-cpp/trunk/modules/java/org/apache/tuscany/Service.java
parent50063bc212e8e93d014519ef0e4d4cabef0b6be2 (diff)
Working queue and chat components. Added a few useful start/stop scripts. Fixed lifecycle code to call start/stop/restart functions before APR pools are cleaned up in both parent and child processes. Minor build script improvements.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@910819 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/java/org/apache/tuscany/Service.java')
-rw-r--r--sca-cpp/trunk/modules/java/org/apache/tuscany/Service.java22
1 files changed, 6 insertions, 16 deletions
diff --git a/sca-cpp/trunk/modules/java/org/apache/tuscany/Service.java b/sca-cpp/trunk/modules/java/org/apache/tuscany/Service.java
index eedba5f46f..a00d5b1b53 100644
--- a/sca-cpp/trunk/modules/java/org/apache/tuscany/Service.java
+++ b/sca-cpp/trunk/modules/java/org/apache/tuscany/Service.java
@@ -26,34 +26,24 @@ package org.apache.tuscany;
public interface Service {
/**
- * Post a new item to a resource.
+ * Post a new item to a collection of items.
*/
- String post(Iterable<?> item);
+ Iterable<String> post(Iterable<String> collection, Iterable<?> item);
/**
* Return an item.
*/
- Iterable<?> get(String id);
+ Iterable<?> get(Iterable<String> id);
/**
- * Return all items in the resource.
+ * Update an item.
*/
- Iterable<?> getall();
-
- /**
- * Update am item.
- */
- boolean put(String id, Iterable<?> item);
+ boolean put(Iterable<String> id, Iterable<?> item);
/**
* Delete an item.
*/
- boolean delete(String id);
-
- /**
- * Delete all items in the resource.
- */
- boolean deleteall();
+ boolean delete(Iterable<String> id);
/**
* Evaluate an expression.